我在角度应用程序中有两个模块。让我们说例如模块A和模块B.我在模块A中有一些视图集。当用户点击模块B的索引文件时,我需要重定向/显示模块A中的视图
ModuleA代码:
define [
'angular'
'angularanimate'
'angularroute'
'jquery'
'jquery.fileupload'
], (
angular
angularanimate
angularroute
$
) ->
app = angular.module 'app', []
# Routes #
app.config ['$provide', '$routeProvider', ($provide, $routeProvider) ->
$routeProvider
.when "/viewC"
redirectTo: "/view0301"
.otherwise
redirectTo: "/view0101"
]
ModuleB代码:
define [
'angular'
'jquery'
**'moduleA/app/scripts/appModuleA'**
], (angular, $) ->
appDev = angular.module 'appDev', ['app'] - injected the moduleA
appDev.config ['$provide', '$routeProvider', ($provide, $routeProvider) ->
$routeProvider
.when "/" - Now need to redirect to the views of the moudleA
如何实现此实施?请帮帮我