My angular ui router is changing states/views as:
$stateProvider
.state({
name: 'home',
url: '/',
template: '<home-view></home-view>',
})
Is there way pass bound parameters to < home-view > in UI router ?
E.g.
<home-view my-data="dataObject">
or
<home-view my-data="myService.getMyData()">
Controller for my-view is located in own file with the actual template & directive.
controller
of the view? That's what it's for :)