Advertisement
Guest User

Untitled

a guest
May 6th, 2015
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. {
  2. state: 'solicitation.details',
  3. config: {
  4. url: '/details/:stype',
  5. parent: 'solicitation',
  6. templateUrl: function($stateParams){
  7. return 'app/solicitation/templates/' + $stateParams.stype + '.html';
  8. },
  9. controller: 'DetailsController',
  10. controllerAs: 'dc',
  11. title: 'Solicitation Details'
  12. }
  13. },
  14.  
  15. <a ng-class="vm.disable.details ? 'disabled' : ''" class="btn btn-default" href="#/solicitation/self/details/request" role="button" ui-sref="solicitation.details({type: vm.type})">Details</a>
  16.  
  17. templateUrl: function($stateParams){
  18. var stype = $stateParams.stype;
  19. console.log(stype);
  20. return 'app/solicitation/templates/' + stype + '.html';
  21. },
  22.  
  23. request //STYPE ACTUALLY GETS POPULATED
  24. solicitation.route.js:58
  25. angular.js:9866 GET http://localhost:3000/app/solicitation/templates/.html 404 (Not Found)
  26. angular.js:11655 Warning: Error routing to Solicitation Details. Cannot GET /app/solicitation/templates/.html
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement