javascript - Initiating same angularjs app in two places -


i have html template being used multiple projects. in template have 2 places can set content.

the layout similar this:

<body>   <div>navbar template</div>   <div>     <div>other template stuff</div>     <div id="content1">content can set here</div>   </div>   <div id="content2">content can set here</div> </body> 

my question is possible use same angular app in both #content1 , #content2? can ng-app="main" used twice?

if isn't possible can add ng-app attribute template rather not have as, said, template used multiple projects lot of won't using angular.

edit: clarify, i'm using tal template zope. in template have 2 fill slots, use same angular app in both fill slots without having change original tal template if possible.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -