I have a module with multiple states which look like below:
(function() {
'use strict';
var maintenancePortabilityModule = angular.module('maintenance.portability.module',['ui-router']);
maintenancePortabilityModule.config([
'$stateProvider',
function ($stateProvider) {
$stateProvider
.state('app.maintenance.portability',
{
abstract: true,
url: '/portability',
template: '<ui-view/>'
})
.state('app.maintenance.portability.landing',
{
url: '/landing',
templateUrl: '/app/maintenance/portability/maintenance.portability.landing.view.html',
controller: 'portabilityImportController'
})
.state('app.maintenance.portability.import',
{
url:'/import',
templateUrl: '/app/maintenance/portability/maintenance.portability.import.view.html',
controller: 'portabilityImportController'
})
}
]);
maintenancePortabilityModule.controller('portabilityImportController',
['$scope',
function ($scope) {
$scope.Message = 'Hello welcome to import page';
}
]);
})();
Now, I have some UI code on landing page where I want do load a state on each tab
2>Data Package Management</h2>
<div class="row push-down-md">
<div class="col-md-12">
<tabset>
<tab heading="Create">
<div>
Create Package
</div>
</tab>
<tab heading="Import" >
Import view should load here</div>
</tab>
</tabset>
</div>
</div>
I have tried using multiple tricks from
> <div ng-view="app.maintenance.portability.import"></div>
to
<tab heading="Import" ng-view="app.maintenance.portability.import" >
but nothing seems to render the view. Can anyone please help on what should I be missing here?