My angular ui router is changing states/views as:
$stateProvider
.state({
name: 'home',
url: '/',
template: '<home-view></home-view>',
})
Is it possible to pass bound parameters to < home-view > in UI router ?
For example:
<home-view my-data="dataObject">
or
<home-view my-data="myService.getMyData()">
The controller for my-view is located in its own file with the actual template and directive.