Answer the question
In order to leave comments, you need to log in
UI-router draw subview only after init function in parent state?
Hello!
let's say we have such a hierarchy of routes
$stateProvider
.state('root', {
abstract: true,
url : '/',
templateUrl : '/views/root.html',
controller : 'RootCtrl',
resolve: resolver
})
.state('main2', {
parent: 'root',
url : 'main2/',
templateUrl : '/views/main2.html',
controller : 'MainCtrl2'
})
<div ng-init="init()">
<section class="container main">
<div class="row scrollreference" ng-style="style()">
<div class="col-md-12" ui-view ng-if="initDone"></div>
</div>
</section>
</div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question