Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $stateProvider
- .state('all compositions', {
- url: '/compositions/recent',
- templateUrl: 'compositions/views/list.html'
- }).
- state('view', {
- url: '/compositions/view/:compositionId',
- views: {
- 'theTool':{
- templateUrl:'compositions/views/partials/view.tool.html' ,
- controller: 'CompositionsController'
- }
- },
- templateUrl: 'compositions/views/view.html',
- controller: 'CompositionsController',
- }). //other states here
- <div ui-view="theTool"></div>
- <section data-ng-controller="CompositionsController" data-ng-init="findOne()">
- <h2>{{composition.title}}</h2>
- <div ng-bind-html="trustedContent"></div>
- </section>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement