我有这些状态:
.state('quotes', { abstract: true, url: '/quotes' }) .state('quotes.new', { url: '/new', templateUrl: 'views/quote-form.html', controller: 'QuoteFormCtrl' }) .state('quotes.new.customer', { url: '?customer', templateUrl: 'views/quote-form.html', controller: 'QuoteFormCtrl' })
当我点击URL时/quotes/new?customer=123
,客户查询字符串被剥离,我就处于该quotes.new
状态.
是什么让最有道理的,我只是添加params: ['customer']
到quotes.new
状态定义,但给我一个错误抱怨我同时指定URL,而params.
任何我想要做的例子都会非常感激.