search

Home  >  Q&A  >  body text

angular.js - angular多个ng-app ng-view问题

自己想试着实现类似网易云音乐的单页面应用


左边的导航 配置路由到右侧内容
右侧内容也有导航 还能通过ng-view实现了么请问?这样的话要定义新的模块 一个页面就会有多个ng-app
如果不行是用什么别的方式比较好呢

PHP中文网PHP中文网2739 days ago563

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