Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • What is Bootstrapping in AngularJS?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 391
    Comment on it

    Hi all,

    Bootstrapping is the equivalent of starting, or initializing your Angular app. There are 2 ways to do so.

    First :-

    <html ng-app="appName">
    -
    -
    </html>
    

    Second:- After creating your app, you should use this when you need to have more control over the initialization process, its also call manual bootstrapping method, and you also need to include script loaders which compiles a page before angular.

    angular.module("appName", [ ]):
    


    angular.bootstrap(document, ['appName']);
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: