Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- state: 'solicitation.details',
- config: {
- url: '/details/:stype',
- parent: 'solicitation',
- templateUrl: function($stateParams){
- return 'app/solicitation/templates/' + $stateParams.stype + '.html';
- },
- controller: 'DetailsController',
- controllerAs: 'dc',
- title: 'Solicitation Details'
- }
- },
- <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>
- templateUrl: function($stateParams){
- var stype = $stateParams.stype;
- console.log(stype);
- return 'app/solicitation/templates/' + stype + '.html';
- },
- request //STYPE ACTUALLY GETS POPULATED
- solicitation.route.js:58
- angular.js:9866 GET http://localhost:3000/app/solicitation/templates/.html 404 (Not Found)
- 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