1

为什么在 Ember.js RC6 中我的单数命名路由和复数等价不再有效?

从 Ember.js RC4 升级到 Ember.js RC6 后,我的大部分路由都可以继续工作,但有几个例外:

App.Router.map ->
  @route 'note', {path: 'note/:id'}
  @route 'notes', {path: 'notes'}
  @route 'attendee', {path: 'attendee/:id'}
  @route 'attendees', {path:'attendees'}

笔记和参加者的单一路线,停止运作。我尝试使用 transitionToRoute 设置自定义控制器方法,而不是在车把中使用 linkTo 帮助器,但是这两种方法都不再适用。回滚到 RC5 或 RC4 可以解决问题,所以我只能假设这与路由器整容有关,但我似乎找不到关于我应该做什么的文档。

4

0 回答 0