0

If I have to configure each module for routing what is the best way?

4

1 回答 1

0

就这么简单:

angular.module('myApp', [])
       .config(['$routeProvider', function($routeProvider) {
           // Do the routing here.
       }])

您可以对每个模块执行相同的操作,而不是在单个公共文件中维护所有模块的路由。

于 2013-07-09T14:39:48.520 回答