简体   繁体   English

从v1.0.8-> v1.2.14升级后Angularjs路由不起作用

[英]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.

相关问题 在链接函数内调用$ observe无法正常工作AngularJS(v1.0.8) - Calling $observe inside link function not working AngularJS (v1.0.8) CSS验证规则适用于AngularJS v1.0.8的onload - CSS validation rules applied onload with AngularJS v1.0.8 v1.0.8中弃用了$ dialog注入 - $dialog injection deprecated in v1.0.8 从angularjs 1.0.8升级到1.2.3后,ng-repeat无法正常工作 - ng-repeat not working after upgrading from angularjs 1.0.8 to 1.2.3 从1.4版升级后出现AngularJS多链接错误 - Getting AngularJS multilink error after upgrade from v. 1.4 angularjs v1.3.15深度链接/路由/路径不再与主题标签一起使用(从v1.2.3迁移) - angularjs v1.3.15 deep linking / routing / path no longer working with hashtag (Migrated from v1.2.3) 升级到v1.3.6后Angularjs解析错误 - Angularjs parse error after upgrade to v1.3.6 从1.0.8更新后,AngularJs中的if语句未删除元素 - If statement in AngularJs not removing elements after update from 1.0.8 从V8分页升级到V15后,ag-grid无法正常工作。 初始加载后未执行数据源 - ag-grid after upgrade from V8 to V15 pagination is not working properly,. Data source is not executed after initial loading 从AngularJS版本1.0.8转换为1.4.2的问题 - Issues converting from AngularJS Version 1.0.8 to 1.4.2
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM