Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2014
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. $stateProvider
  2. .state('all compositions', {
  3. url: '/compositions/recent',
  4. templateUrl: 'compositions/views/list.html'
  5. }).
  6. state('view', {
  7. url: '/compositions/view/:compositionId',
  8. views: {
  9. 'theTool':{
  10. templateUrl:'compositions/views/partials/view.tool.html' ,
  11. controller: 'CompositionsController'
  12. }
  13. },
  14. templateUrl: 'compositions/views/view.html',
  15. controller: 'CompositionsController',
  16.  
  17. }). //other states here
  18.  
  19. <div ui-view="theTool"></div>
  20. <section data-ng-controller="CompositionsController" data-ng-init="findOne()">
  21. <h2>{{composition.title}}</h2>
  22. <div ng-bind-html="trustedContent"></div>
  23. </section>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement