Popularni postovi

Saturday, 5 July 2014

If module is not working

Every external library you which you want to use in your AngularJS application you MUST declare it in angular.module like this:

var app = angular.module('AngularAuthApp', ['ngRoute', 'LocalStorageModule', 'angular-loading-bar', 'ngGrid', 'ui.bootstrap']);

If you are using UI Bootstrap you must add 'ui.bootstrap' here.
I loose hours trying to make things work and on the end I realize that I forget this....


No comments:

Post a Comment