Posts

Showing posts from June, 2016

Angular.js Interview Questions

           Brush Up with Angular.JS Made a note of important links and interview questions while preparing with Angular.js  1) How Angular bootstraps and different ways of bootstrapping. Bootstrapping is the equivalent of initializing, or starting, your Angular app. There are 2 main ways to do so. The first is automatically bootstrapping by adding ng-app to the an element in your HTML, like so: <html ng-app="myApp"> <body ng-controller="myCtrl"> {{msg}} </body> </html> The second would be to bootstrap from the JavaScript, like so, after having creating your app through  angular.module("myApp", []); var app = angular.module("myApp", []); angular.bootstrap(document, ['myApp']); common controller initialization in both the cases:- var app = angular.module("myApp", []); app.controller('myCtrl', function($scope){ $scope.msg = "Morgan" }); Advanta...