Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .state('product', {
- url : '/product',
- abstract : true,
- template : '<ui-view/>'
- })
- .state('product.details', {
- url : '/{id}',
- templateUrl : '/views/pages/product.html',
- controller: 'productCtrl',
- resolve: {
- data: function ($stateParams, soApi) {
- return soApi.getProduct({
- 'id': $stateParams.id
- }).then(function(response) {
- return response;
- });
- }
- },
- meta: {
- 'title': data.product.name
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement