app.js
I have created multiple views having the same controller named as vendorCtrl, as we know that $scope can be used withing a specific controller, my question is without the help of $rootscope how can i share data between multiple views named as basic, areas, identity
$stateProvider
.state('dashboard.vendor.add',{
views:{
'@': {
templateUrl: 'templates/vendor/forms/basic.html',
controller : 'vendorCtrl'
}
}
})
.state('dashboard.vendor.add.areas',{
views:{
'@': {
templateUrl: 'templates/vendor/forms/areas.html',
controller : 'vendorCtrl'
}
}
})
.state('dashboard.vendor.add.identity',{
views:{
'@': {
templateUrl: 'templates/vendor/forms/identity.html',
controller : 'vendorCtrl'
}
}
})