Check out my code snippet below:
$stateProvider
.state('admin', {
abstract: true,
templateUrl: "views/common/content.html",
resolve: {
channel: function($stateParams){
return $stateParams.id
}
}
})
.state('admin.dash',{
url: "/dash",
templateUrl: "views/admin/admin_dash.html"
})
I have multiple controllers within the admin_dash.html view using ng-controller. However, I am encountering an issue where I am unable to inject 'channel' in any of these child controllers. The 'channel' is a resolved dependency of the parent state and should be inherited.