An Angular admin(publishing) tool that displays announcements , links used by a website , and any changes you make to these entities will reflect on the actual website.
The following features are used
- uses ng-route for routing
- Bootstrap datetime picker
- Ng-grid for displaying a table containing history of announcements
- Used textAngular for editing html content for announcements.
- used ui-select to display visually appealing multi select component.
Challenges:
-
This project displays the ability to make ajax calls prior to the config phase . The way it achieves it is to call angular.injector to obtain $http service , before even calling angular.module to init the modules, . The it makes a call to a java rest service, that returns what navigation elements are authorized for this user.
-
Then we use the $routeProvider to initialize the necessary routes for all those nav elements which the user was authorized.
-
To delay the bootstrapping of application , we should remove the ng-app attribute from html page, and use angular.bootstrap when the $http service promise is resolved.