Angular Notes - pinky884/my_git_repo GitHub Wiki
Angular JS bootstapping an application: If you have included angular JS in your script element in HTML, after loading the script file the callback is invoked by angular and will look for ng-app directive in your html to bootstap the application. Angular application bootstap can be done in 2 ways:
- Automatically - By including in element
- Manually - By including in element or element. You will have to manually invoke the bootstap process by using the below code.
` angular.module('myApp', []) .controller('MyController', ['$scope', function ($scope) { $scope.greetMe = 'World'; }]); angular.element(function() { angular.bootstrap(document, ['myApp']); }); `