Skip to main content

Questions tagged [angularjs]

AngularJS is an open-source JavaScript framework. Its goal is to augment browser-based applications with Model–View–Controller (MVC) capability and reduce the amount of JavaScript needed to make web applications functional. These type of apps are also known as Single-Page Applications.

Filter by
Sorted by
Tagged with
1 vote
2 answers
115 views

I'm trying to keep up-to-date with the latest-greatest from Angular2, in part by carefully reading the official online documentation. Is there a way to be notified or at least to figure out relatively ...
Andrew Willems's user avatar
0 votes
1 answer
71 views

I'm wondering what's best practice in next use case: I'have a view that displays data for 3 resources User, Company, and CompanyType (chosen in select, can be added dinamicaly so it's not enum). What ...
Nenad Milosavljevic's user avatar
2 votes
2 answers
804 views

I've seen an API list methods with both of the following signatures: methodA(...) : ReturnType methodB(...) : typeof ReturnType I understand the first but not the second. My question comes ...
Andrew Willems's user avatar
0 votes
1 answer
97 views

A web application I'm working on has a tool that queries a database and returns up to several thousand rows. When considering pagination, at what point does it make more sense to get the entire result ...
Chris Olsen's user avatar
0 votes
0 answers
248 views

For a real-time forum app I'm working on currently. It takes about 1-5 seconds for the sockets on my node.js server to connect and deliver the first payload, which is some database results from mongo....
sova's user avatar
  • 1,422
3 votes
0 answers
79 views

I am having a scenario wherein we have a Product Entity or a Front End Module which can be Added, Edited and Deleted. Now Product ( when added or edited) can contain a Dropdown called as ...
Mitesh Manani's user avatar
1 vote
0 answers
667 views

In the last days I have searched for a documentation on how and when is it best to use redux and how to design the state tree. My research ended in the conclusion that there is no one correct answer. ...
Stav Alfi's user avatar
  • 297
0 votes
1 answer
3k views

In Angular 2 (currently 2.0.0-rc.6), routerLink is used as a directive to indicate a path we wish to follow in our routing, e.g. in response to clicking a link. However, in the documentation both of ...
Andrew Willems's user avatar
6 votes
1 answer
245 views

I've created maybe five services like RoleService, AuthService, etc. Each of them has some state (e.g., RoleService.role, AuthService.isLoggedIn) affecting a lot of controllers and some other services ...
maaartinus's user avatar
  • 2,733
0 votes
2 answers
919 views

I am developing an Angular SPA and I am currently in the design phase. I have created a sample architecture which I am planing to use in my SPA but I would get some feedback because I want the ...
Lorenzo von Matterhorn's user avatar
2 votes
1 answer
6k views

I'm working on a microservices architecture which contains a couple a REST API as a services and a SPA as an interface. In addition, there are an "special" (is not speacial at all, it just special ...
Ruben's user avatar
  • 31
5 votes
1 answer
872 views

I am reading a book (Getting MEAN by Simon Holmes) about MEAN Stack which talks about different architectures that can be used while developing an app in MEAN Stack and I got a little confused with ...
Lorenzo von Matterhorn's user avatar
0 votes
1 answer
1k views

I want to learn AngularJS but on the website I see a button with the text Try the new Angular 2. Is Angular 2 ready for production use or should I learn and use AngularJS 1?
Kevin's user avatar
  • 119
-1 votes
1 answer
354 views

Here is my scenario. I would like advice on which path to follow, along with good reasons as to why. It would even be better if you could give an example based on experience of a similar decision but ...
Lamin Sanneh's user avatar
  • 4,095
0 votes
1 answer
102 views

tl;dr - On an existing angularjs grid library, am moving to another. Is it better to wipe out as much code as possible and in a sense code from scratch to the same featureset, or work around what's ...
Gavin Fitzgerald's user avatar
0 votes
1 answer
858 views

I am Developing a E-Commerce Web Application as a part of my learning using Spring Hibernate and AngularJs. I have written some Rest API's Controllers in Spring and then from the Web Component i am ...
Mitesh Manani's user avatar
3 votes
4 answers
791 views

I am writing an application in Angular JS (1.5), and I need to be able to track a model for changes (updates/deletes/additions). For example, I have an ng-model that holds an array of user pets. This ...
unseen_damage's user avatar
0 votes
0 answers
120 views

I am working on a complex widget with a "preferences" object tree with 50-100 objects and 3-5 properties in each object. Each property is watched by Angular and controls how some aspects of the data ...
billc.cn's user avatar
  • 640
2 votes
1 answer
634 views

I made a simple responsive single page web app (about 5 views) to replace our old jsf web application using angularjs+bootstrap. Now looking into frameworks like ionic, cordova and trigger.io. what I ...
uylmz's user avatar
  • 1,139
0 votes
0 answers
266 views

I have a register page that uses text inputs as well as an avatar input. There's another part in the website where the avatar input is also used, but it's used alone this time. So I'd like to make it ...
Steve Chamaillard's user avatar
2 votes
1 answer
511 views

For a GameJam I'm trying to code a simple web-based text adventure game with sprites and small animations in AngularJS. I'm a little new to Angular and am having some trouble figuring out how to ...
bryanwillis7's user avatar
2 votes
2 answers
295 views

I have a web app that makes use of node.js in the backend and angulajs on the front end. Let's say I have a user who has the ability to login via multiple systems; I must allow multiple logins. I ...
Gandalf the White's user avatar
5 votes
2 answers
2k views

I'm trying to keep my controllers as thin as possible, so I keep my domain logic in services and factories. When I need to call a function in response to a user action like a click I assign the ...
Legion's user avatar
  • 539
8 votes
3 answers
636 views

The view model seems to be the most appropriate place to perform validation yet Angular seems to be pushing me down the popular form validation route. Why Model Validation? DRY - Applying validation ...
heymega's user avatar
  • 203
3 votes
1 answer
1k views

I have Spring+Java Server Faces (Facelets) application for which I would like to create Single Page Application (SPA) version, e.g. using AngularJS (which is the best and most popular GUI framework). ...
TomR's user avatar
  • 1,029
16 votes
4 answers
16k views

I'm starting a greenfield app and I want to use ASP.NET (4.6) and Angular 2. For the backend I have created a project in Visual Studio, and now I'm wondering where to put the Angular app. I really ...
Christian Wattengård's user avatar
2 votes
3 answers
267 views

I have everything I need in 2 services in form of REST api's, is it a good idea or even possible to replace my existing asp.net app by writing ONE single html page (embedded with Angular templates) ...
Jenna Leaf's user avatar
10 votes
2 answers
10k views

Firstly, a note on the app I'm about to discuss: It's quite large, on the order of magnitude of a service app like Airbnb -- i.e., it's not just a static web page, it is a full web application. It's ...
Ovid2020's user avatar
  • 111
1 vote
2 answers
2k views

Sorry if I'm not explaining the question well in the title, I'm not sure of the correct lingo. Let me give you an example instead. So this is a normal HTML file. <span>Welcome to the site!</...
jackdh's user avatar
  • 111
5 votes
1 answer
4k views

I have just noticed that I am coding stuff like this: <input type="text" ng-model="userName" id="userName" name="userName" /> And it occurs to me that I have access to the data though ng-data. ...
Mawg's user avatar
  • 4,308
2 votes
1 answer
305 views

In the below code. <!DOCTYPE html> <html ng-app="app10" ng-cloak> <head> <title>Custom directives</title> <style> [ng\:cloak], [ng-...
overexchange's user avatar
  • 2,325
0 votes
2 answers
95 views

I have an angular service that fetches data that will be used by multiple controllers. I only want to fetch the data from the db once and then have the service store the data in an object which ...
Legion's user avatar
  • 539
-1 votes
2 answers
854 views

I might be wrong for some things here, but here is what I recently though about. Modern frameworks MVC such as ASP.NET MVC 5, CakePHP, Java Spring etc. has their logic clearly separated into Models ...
Finn's user avatar
  • 107
1 vote
0 answers
1k views

I think one of the things a developer faces when using ngRepeat, is that the when the i has the same value in an array, as in ng-repeat="i in myCtrl.arr", then: angular.js:13236 Error: [ngRepeat:...
nonopolarity's user avatar
  • 1,837
0 votes
0 answers
73 views

My general rule for web development is that the server encodes HTML tags in any user-generated input when it is first submitted to prevent XSS. However recently someone suggested that instead of ...
nablex's user avatar
  • 665
-1 votes
2 answers
1k views

I am building a support web front-end for our team from where we can perform various support functions for a number of different sites at which our products run. This typically involves running some ...
Neville's user avatar
  • 119
1 vote
4 answers
1k views

We have built a complex Angular application that sends multiple HTTP request to a REST service that is also built in house. Since both the frontend and the backend is being developed in parallel, ...
nipuna-g's user avatar
  • 111
3 votes
1 answer
895 views

I have a website with an already-established authentication system. Once a user logs on to it, one of the features is a statistics application based on AngularJS. The app communicates with an ...
ctrlz's user avatar
  • 31
0 votes
1 answer
1k views

I have been tasked with connecting an existing Angularjs app to a third party service via API using Basic Auth credentials I got from the third party website. I am not as experienced with Angular and ...
user218568's user avatar
1 vote
2 answers
154 views

So Im using the MEAN framework to build my web app. Like all other apps it requires a login & registration. My Approach so far has been: Every major function of my app has its own AngularJS ...
Lorenzo von Matterhorn's user avatar
1 vote
1 answer
1k views

I'm in the process of experimenting with ways of breaking up a large (and growing project). Currently, we're working with a big Angular application with what will soon be a large number of components. ...
Callum Evans's user avatar
0 votes
1 answer
733 views

I am developing an application with Sprintboot + REST + Angular. While I am working on the REST API, I am trying to design as RESTful as possible. I'm encountering certain pages where the Angular UI ...
TechCrunch's user avatar
2 votes
3 answers
2k views

Is it true that ngBind and ngModel are very similar: bind the model (the data) the either static text element or changeable element, such as text input box, select element, or textarea. In that case, ...
nonopolarity's user avatar
  • 1,837
1 vote
1 answer
2k views

So Im building an app and I'm trying to implement the structure of the app so that its robust and scalable in future. My app is mostly divided into JavaScript Modules (revealing pattern): // filter....
Lorenzo von Matterhorn's user avatar
6 votes
1 answer
1k views

Imagine a humongous web aplication built using Single Page Application framework such as AngularJS. With its each route it downloads a couple of HTML template files. Each of these template files ...
Temp O'rary's user avatar
0 votes
1 answer
566 views

I heard that AngularJS is becoming quite popular, and at the same time ReactJS is also. But if AngularJS already takes care of MVC with 2 way binding between model and view, would ReactJS actually be ...
nonopolarity's user avatar
  • 1,837
0 votes
1 answer
3k views

I am new to the world of Javascript and their frameworks, and I feel a bit lost with this. I am trying to follow the official toutorial of AngularJS. In one of the first sections, it reads Install ...
Pablo De Luca's user avatar
-3 votes
1 answer
296 views

Is it considered good practice to have: Single, general directive that has multiple data-* parameters and serial data is binded from controller Single, general directive that has config and serial ...
Abdizriel's user avatar
  • 109
59 votes
4 answers
74k views

I started learning AngularJS and ASP.NET MVC, but am not sure why to use them both together in the same project? Aren't they both MVC frameworks? Should I be using them both in the same application? ...
Natalie's user avatar
  • 727
2 votes
3 answers
291 views

I'm new to Angular JS and working on a project with "legacy" Angular JS code. The code is about a year or half a year old. I often see stuff like this: var _link; _link = "http://localhost"; Or: var ...
Thomas Uhrig's user avatar