top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

In Angular.JS, How to bootstrap the app without using ng-app?

0 votes
408 views
In Angular.JS, How to bootstrap the app without using ng-app?
posted Dec 31, 2017 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

We can bootstrap the app in controller level with using angular.bootstrap

Example:

var app = angular.module("app", []);  
angular.bootstrap(document.getElementById("container"), ["app"])  
answer Jan 31, 2018 by Aarati Mahajan
...