Angular -
Mar
20th
Lazy Loading with Angular JS
Author :Alex Parker

Download example form here When your project size increases gradually it’s not always possible to include all controllers & dependency libraries at a time. If you do so, then size of the page & loading time will increases. Alternate way is to load controllers, views & dependencies libraries on demand. Unfortunately, Angular.js doesn’t come with […]

Read More...

Jun
10th
ng-option directive in AngularJS
Author :Alex Parker

ng-option is an AngularJS built in directive which is used to populate drop-down list. It uses array for listing. In many cases, it would be easier to use ng-repeat directive, but you have more flexibility when using ng-option directive. In case of ng-option, index can be object whereas in ng-repeat index of drop down list […]

Read More...

May
28th
Understanding Angular’s $scope and $rootscope event system $emit , $broadcast and $on
Author :Alex Parker

AngularJS provides $on, $emit, and $broadcast services for event-based communication between controllers. $rootScope.$emit :- only lets other $rootScope listeners to catch it. This is good to use when you don’t want every scope to listen it. Most high level communication have been done using this event. $scope.$emit is when you want that $scope and all […]

Read More...