As I wrote in title, I can't understand how to use nested view. I'm trying to use UI-Router.
Say for example I've the following html:
<div ui-view="viewA"></div>
<div ui-view="viewB"></div>
I wish to inject two different templates for "viewA"
and "viewB"
JS routes:
function configB($urlRouterProvider, $stateProvider){
$urlRouterProvider.otherwise("/");
$stateProvider
.state("/",{
url: "/",
templateUrl : "/testingBlock.htm",
controllerAs : "MainCTRL as ctrl"
})
.state("login",{
url: "/login",
templateUrl : "/app/templates/login.htm",
controllerAs : "MainCTRL as ctrl"
})
.state("multi",{
url: "/multi",
templateUrl : "/app/templates/multipleView.htm",
controllerAs : "MainCTRL as ctrl"
});
}
HTML for "/app/templates/multipleView.htm":
<div ui-view="viewA"></div>
<div ui-view="viewB"></div>