|
板凳
楼主 |
发表于 2016-4-1 17:51:15
|
只看该作者
你是说比如变成下面这种写法吗?这路径方面的没怎么研究过,这样写跳不成功。。然后你说的保持动画效果是什么意思啊
.state('tab.product-order', {
// url: '/product/order/:productId/:addressId',
// resolve: getResolve(['public/js/product/order.js', 'public/css/product.css']),
// views: {
// 'tab-product': {
// templateUrl: 'templates/product/order.html',
// controller: 'productOrderCtrl'
// }
// }
// })
.state('tab.product-order', {
url: '/product/order/:productId/:addressId',
resolve: getResolve(['public/js/product/order.js', 'public/css/product.css']),
templateUrl: 'templates/product/order.html',
controller: 'productOrderCtrl'
}) |
|