Advertisement
Guest User

Untitled

a guest
Jul 30th, 2014
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. $stateProvider
  2. .state('login', {
  3. url: '/',
  4. templateUrl: 'templates/login.html',
  5. controller: 'LoginController'
  6. })
  7. .state('boards', {
  8. url: '/boards',
  9. templateUrl: 'templates/boards.html',
  10. controller: 'BoardsController'
  11. })
  12. .state('boards.details', {
  13. url: '/:boardId'
  14. })
  15. .state('boards.details.notes', {
  16. url: '/notes',
  17. templateUrl: 'templates/boards.notes.html',
  18. // template: '<h1>ollo</h1>',
  19. // controller: 'NotesController'
  20. controller: function ($stateParams) {
  21. console.log($stateParams);
  22. }
  23. })
  24.  
  25.  
  26.  
  27. ======================================boards.html
  28. <div ng-repeat="board in boards">
  29. <div class="title-container">
  30. <!--<a ui-sref="boards.notes({ boardId: board.id })">-->
  31. <a ui-sref="boards.details.notes({ boardId: board.id })">
  32. </a>
  33. <h2>{{board.title}}</h2>
  34. </div>
  35. <div class="board-description"><p>{{board.description}}</p></div>
  36. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement