<a ui-sref="man">男人</a>
$scope.items = [
{state: "man", statePage: "man.html"},
{state: "womanMe", statePage: "woman.html"}
]
<li repeat="item in items">
<a ui-sref="{{item.statePage}}"><{{item.state}}</a>
</li>
<a ui-sref="man({id:1,name:2})" >按钮</a>
$stateProvider.state('man', {
url: '/man.html?id&name', //参数必须先在这边声明
templateUrl: '../man.html',
})
$stateProvider.state('man', {
url: '/man.html',
templateUrl: '../man.html',
params: {'id': null,'name':null},//参数在这边声明
})
element.bind("click", function(e) {
var button = e.which || e.button;
if ( !(button > 1 || e.ctrlKey || e.metaKey || e.shiftKey || element.attr('target')) ) {
var transition = $timeout(function() {
// HERE we call $state.go inside of ui-sref
$state.go(ref.state, params, options);
});
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有