[英]Angularjs routing not working after upgrade from v1.0.8 --> v1.2.14
I've just upgraded my application from v1.0.8 --> v1.2.14 and now I'm not able to view any routes. 我刚刚从v1.0.8-> v1.2.14升级了我的应用程序,现在我无法查看任何路由。 I'm not sure how to debug this as the controller is not invoked either.
我不确定如何调试此控件,因为控制器也未调用。 I'm not getting any errors at all either?
我也没有任何错误吗?
Any help is appreciated. 任何帮助表示赞赏。 Thanks again
再次感谢
.config(function($routeProvider) {
$routeProvider
.when('/:a', {
template: '<div data-ng-include="templateUrl">Loading...</div>',
controller: 'DynamicController'
})
.otherwise({
redirectTo: '/:a'
});
});
I was not appending /#/a to my URL. 我没有在URL后面附加/#/ a。 The application was working fine.
该应用程序运行正常。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.