I want to create angular nested routes in my application using angular-ui-router
with multi sub-modules;
In "ui-router
" we can use multi views in our main app config as $stateProvider
, but can't switch between sub-modules when you are in other module.
For example when you are in "module1
" you can not state to "module2
".
So, How can I switch between my modules?
In this application you can route between sub modules easily:
Create main application "
mainApp.js
"Create "
index.html
" for your mainApp:Create your Partials "
home.html
"Add "
registerStateApp
" in your projectUpdate "
mainApp.js
" & inject "registerStateApp
" in your main applicationCreate your sub-modules
Create sub-module main view
Add your sub-modules state in your main app "
mainApp.js
"