Sanity checking with ng-strict-di The ng-strict-di directive is new and extremely simple to understand. When declaring the parent DOM node for your application, if ng-strict-di is included in that element, functions without the minification-safe dependency injection syntax will fail to execute. How to do it… Using the ng-strict-di directive is as simple as adding an extra attribute to your ng-app node, as follows: (app.js) … Continue reading ng-strict-di

what are providers in AngularJs An angular application uses services ($http, $location, etc.). It's sometimes necessary to configure these services before using them. For example, the $location service has two modes of execution: the "normal" mode, and the "html5" mode. $httpmight need some headers configured before even sending its very first HTTP request. To configure these services, Angular uses providers. Providers are objects whose role is … Continue reading what are providers in AngularJs