1
这是我的路线:铁路由器和notFoundTemplate
this.route('showItem', {
path: '/item/:_id',
template: 'layout',
yieldTemplates: {
'content': {to: 'content'},
'item_details': {to: 'details'}
},
notFoundTemplate: 'notFound',
data: function() {
return null; //for test
}
})
而且notFound
模板,这很简单:
<template name="notFound">
Not found!
</template>
而且我不明白,为什么总是呈现item_details
永不notFound
。
谢谢!现在正在工作,但是...... :-)是否有可能渲染'不发现'而不是'item_details'?因为我的“内容” - 带有标记的地图。我不想重绘地图,只有细节部分 – none