I'm trying to render two templates at the same time in same View using two differents ui-view. I'm probably missing something but I don't know what. Can I get some help ?
My App.js
var routerApp = angular.module('routerApp', ['ui.router']);
routerApp.config(function($stateProvider) {
//$urlRouterProvider.otherwise('/home');
var People = {
name: 'People',
url: '/People',
views: {
'PeopleView': {
templateUrl: 'People.html'
}
}
}
var Company = {
name: 'Company',
url: '/Company',
views: {
'CompanyView': {
templateUrl: 'Company.html'
}
}
}
$stateProvider.state(People);
$stateProvider.state(Company);
});
HTML
<div class="container">
<fieldset>
<div class="row">
<legend>Content</legend>
<div ui-view="PeopleView" class="col col-md-4"></div>
<div ui-view="CompanyView" class="col col-md-4"></div>
</div>
</fieldset>
</div>
Full Code