search

Home  >  Q&A  >  body text

angular.js - angular multiple ng-app ng-view issue

I want to try to implement a single-page application similar to NetEase Cloud Music


The navigation on the left is configured to route to the content on the right
The content on the right also has navigation. Can it also be implemented through ng-view? In this case, you need to define a new module. There will be multiple ng-apps on one page
If that doesn’t work, what other method is better?

PHP中文网PHP中文网2754 days ago583

reply all(2)I'll reply

  • ringa_lee

    ringa_lee2017-05-15 17:13:50

    Using angular-ui-router can meet your requirements
    https://github.com/angular-ui...

    reply
    0
  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-15 17:13:50

    ng-controller defines multiple controllers, and several templates are loaded in parallel during loading

    reply
    0
  • Cancelreply