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....
My road to build usable AngularJS app with WebAPI. Here are some tips and tutorials which I used to solve my problems and to keep solutions on one place so I can easily find it when needed.
Popularni postovi
-
These days I tried a lot of select/Dropdown/Combobox controls in angular but on the end I realized that classic select2 (angular version) wo...
-
In Web API insert this: public IHttpActionResult GetKontakti(int page = 1,int itemsPerPage = 30, string sortBy = "Nazi...
-
Source: http://stackoverflow.com/questions/21255203/angularjs-clientside-routing-and-token-authentication-with-webapi Interceptors: http...
-
In order to show ng-grid you must do this: add 'ngGrid' to app definition like this: var app = angular.module('AngularAuthApp...
-
'use strict'; app.controller('ordersController', ['$http','$scope', 'ordersService', function ($htt...
-
After reading this answers article and this blog I changed: entity . Metadata = @"res://*/Data.System.csdl|res://*/Data.Syst...
-
I found that jQuery UI datepicker when putted in directive is better than Angular UI date picker because it requires less JavaScript code be...
-
Visit: http://ngmodules.org/ There are modules for everything...
-
Here is tutorial: http://pointblankdevelopment.com.au/blog/angularjs-aspnet-web-api-2-server-side-sorting-searching-and-paging Suppose we...
-
The || operator can be used to fill in default values: var middle = stooge["middle-name"] || "(none)"; var status ...
No comments:
Post a Comment