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.
203 questions
60
votes
2
answers
29k
views
Communication between nested directives
There seem to be quite a few ways of communicating between directives. Say you have nested directives, where the inner directives must communicate something to the outer (e.g. it's been chosen by the ...
59
votes
4
answers
74k
views
Should I be using both AngularJS and ASP.NET MVC?
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? ...
49
votes
10
answers
32k
views
Under what conditions is the use of MVVM appropriate?
Model View View-Model was developed by Microsoft to target UI development platforms which support event-driven programming, specifically Windows Presentation Foundation (WPF) and Silverlight on the ....
40
votes
3
answers
43k
views
AngularJS: structuring a web application with multiple ng-apps
The blogosphere has a number of articles on the topic of AngularJS app structuring guidelines such as these (and others):
http://www.johnpapa.net/angular-app-structuring-guidelines/
http://...
36
votes
4
answers
52k
views
Should angularjs directive directly interact with services or is it considered an anti-pattern?
Which one is considered better:
having a directive that interacts with services directly
or
having a directive that exposes certain hooks to which controller may bind behaviour (involving services)?
35
votes
6
answers
7k
views
Progressive Enhancement vs. Single Page Apps
I just got back from a conference in Boston called An Event Apart.
A really popular theme amongst the speakers was the idea of progressive enhancement - a site's content should go in the HTML, and ...
21
votes
1
answer
48k
views
Why sending a file is so difficult using angular? [closed]
I have to send a file (very large file) to a server. I'm studying what options I have and how to do it. I'm using angular + express + nodejs.
If I use a simple form, I could catch the file on the ...
16
votes
4
answers
16k
views
Where to put the Angular app in a ASP.NET Web API solution?
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 ...
15
votes
1
answer
19k
views
AngularJS Directive vs Service vs Controller
I am about to start implementing a change request on my companies internal website, that will check a bunch of fields and highlight them if they match certain guidelines. For example, if the date of ...
13
votes
1
answer
1k
views
Order and filter Server-Sent-Events in angular.js eventsource
I have a Client in AngularJS where I consume multiple SSE (Server-Sent-Events) in Java from the Server Side (there are multiple endpoints in different web servers in the backend). Diagram link
I ...
12
votes
5
answers
26k
views
Server side C# MVC with AngularJS [duplicate]
I like using .NET MVC and have used it quite a bit in the past. I have also built SPA's using AngularJS with no page loads other than the initial one. I think I want to use a blend of the two in ...
11
votes
4
answers
18k
views
Better ways than traditional polling methods
I'm currently in a AngularJS/Javascript environment.
Currently the application using the polling method (i.e, to retrieve new data from server in a fixed amount of seconds).
This is quite taxing ...
11
votes
2
answers
971
views
angularJS code sharing across hybrid Ionic app and regular mobile website
Ok, so in our 'innovation lab', there is currently a push to use Ionic, an hybrid app framework built on top of Cordova for native access and angularJS for the ‘web code’.
There are also some ...
10
votes
2
answers
10k
views
Client-side Rendering vs JSP's for Spring MVC Front End Dev
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 ...
10
votes
1
answer
1k
views
How to avoid module dependency chain nightmare caused by transitive dependencies?
Many (most?) AngularJS folks seem to advocate for breaking AngularJS apps up into many modules.
Brian Ford in his blog already states that packaging by layer (controller, service, etc.) is a "silly" ...