为我的英语道歉,
我有一个这样的路由器:
App.Router.map ()->
@resource 'movies' , ->
@route 'free'
@route 'featured'
@route 'index'
@route 'movie', path: '/:movie'
@resource 'seasons' , ->
@route 'free'
@resource 'featured', ->
@route 'season', path : '/:season'
@route 'index'
@route 'season', path: '/:season'
在这种特殊情况下:
@resource 'seasons' , ->
@route 'free'
@resource 'featured', ->
@route 'season', path : '/:season'
如果做一个:
{{#linkTo "seasons.featured.season" 25}} ....
Ember 引发异常。我要做 :
{{#linkTo "featured.season" 25}} .... // this way is ok
模板也是如此。我必须输入路径:
/templates/featured/seasson.hbs // ok
而不是我认为应该是正确的路径:
/templates/seasons/featured/seasson.hbs // worng
这是正确的方法吗??
提前致谢