Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
If I have to configure each module for routing what is the best way?
就这么简单:
angular.module('myApp', []) .config(['$routeProvider', function($routeProvider) { // Do the routing here. }])
您可以对每个模块执行相同的操作,而不是在单个公共文件中维护所有模块的路由。