【发布时间】:2015-08-07 20:28:48
【问题描述】:
我有以下 $router 配置
$router.config ([
{ path: '/account/profile', components: {'main' : 'accountProfile' }},
{ path: '/campaigns/:type', components: {'main' : 'campaigns' }},
{ path: '/login', components: {'main' : 'login' }},
{ path: '/', redirectTo: '/home' }
]);
我想根据广告系列的 :type 更改模板。
如何使用新的 Angular 路由器做到这一点?
【问题讨论】:
标签: angularjs angularjs-new-router