angular.js - Angularjs has multiple modules, and each module sets the same router state. Is this feasible?
阿神
阿神 2017-05-15 16:50:48
0
1
679

Angularjs has multiple modules, and each module sets the same router state. Is this feasible?

阿神
阿神

闭关修行中......

reply all(1)
我想大声告诉你

Not feasible.

state is the state of the application, not the state of the module, but it is configured through the module's config interface.

Unless each of your modules is a completely independent application, multiple modules define the same state. Which one should be run when the state is activated? Using ui.router will throw an exception directly.

But multiple states can be defined in multiple modules belonging to the same app, and there can be a parent-child relationship.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template