【发布时间】:2016-10-19 02:42:49
【问题描述】:
我想将 Steps Wizard 放入 Modal。
这是我的工作向导:plunker http://plnkr.co/edit/achnwMtmebR3oc8bq7pp?p=preview
这是我的工作模式:http://plnkr.co/edit/ux1Ju6m2s9VqiIPjmH1n?p=preview
如何将此工作向导添加到模式中?嵌套状态可以是多个状态还是限制为不超过两个?
.config(function($stateProvider, $urlRouterProvider) {
$stateProvider
// route to show our basic form (/form)
.state('form', {
url: '/form',
templateUrl: 'form.html',
controller: 'formController'
})
// nested states
// each of these sections will have their own view
// url will be nested (/form/profile)
.state('form.profile', {
url: '/profile',
templateUrl: 'form-profile.html'
})
// url will be /form/interests
.state('form.interests', {
url: '/interests',
templateUrl: 'form-interests.html'
})
// url will be /form/payment
.state('form.payment', {
url: '/payment',
templateUrl: 'form-payment.html'
});
// catch all route
// send users to the form page
$urlRouterProvider.otherwise('/form/profile');
})
【问题讨论】:
标签: angularjs angular-ui-router angular-ui-bootstrap