angular-smart-bootstrap

1.0.5 • Public • Published

Angular smart bootstrap

AngularJS docs:

You should call angular.bootstrap() after you've loaded or defined your modules. You cannot add controllers, services, directives, etc after an application bootstraps.

// add controllers, directives etc
angular.Module()
   .controller(...)
   .filter(...)

// angular manual bootstrap
angular.Module(true)

angular.Module()
   .controller('newController', function($scope){
       $scope.value = 5;
       $scope.method = function(){
           $scope.value += 1 
       }
   })

/angular-smart-bootstrap/

    Package Sidebar

    Install

    npm i angular-smart-bootstrap

    Weekly Downloads

    5

    Version

    1.0.5

    License

    MIT

    Last publish

    Collaborators

    • buldovsky