Skip to content

BigKunLun/angularDelaystart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

angularDelaystart

A very simple AngularJS Lib used for delayed start.Load it before app.js and then use it like this:

angular.module('javis').run(['$rootScope','USER_INFO', function($rootScope,USER_INFO) {
  $rootScope.userInfo = USER_INFO;
}]);

angularDelaystart.startBootstrap({
  module: 'javis',
  resolve: {
    USER_INFO: ['$http', function ($http) {
      return $http.get('/api/user/current');
    }]
  }
});

About

A very simple AngularJS Lib used for dealyed start

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published