Just a quickie here.
At Envoc, its not uncommon for designers to jump on a project to add some visual love to an app. However, if they have not been on the project for a while, knowing what directives do what and where they are located can be a pain. So to help alleviate this, I decided to take a quick stab at using http-interceptors to add a comment to the template when it is requested.
Producing the following:
Working at Envoc I live in the .Net world. We have a lot of talented developers that can solve just about any domain problem with the given toolset. And I personally find developing in Visual Studio quite nice (Web Essentials and Resharper take it to the next level). I am currently helping move a lot of our front-end work into the AngularJS realm and decided to share some of the things that might make the .Net developers life a little better.
While Angular is a framework for the modern Single Page App, I have found that a lot of our MVC applications call for a collection of these “ng-apps”. In this instance they typically don’t include the client side routing.
Learning Angular has been one of the greatest productivity boosts for rapid application development in my career. However, some of the common strategies implemented can be improved in my opinion.
In AngularJS, there is a great deal of importance placed on separation of concerns. One of the most practiced patterns for holding application state is move this data into angular services or factories. Which one of the former to use is totally a personal preference in my opinion (I opt for factories most of the time).
The purpose of this post is aimed at services that hold collections that update from remote data calls.
Targeted AngularJS version at time of writing:
Too many times, I have run across angular controllers bringing in the
$scope service just to
$watch a service collection: