我是新來的emberjs它真的很酷,我在官網guide,我添加了一些Posts模型夾具後,默認application
模板拒絕顯示,我無法弄清楚問題出在哪裏。Ember默認模板不顯示
這裏是我的code
我是新來的emberjs它真的很酷,我在官網guide,我添加了一些Posts模型夾具後,默認application
模板拒絕顯示,我無法弄清楚問題出在哪裏。Ember默認模板不顯示
這裏是我的code
這是非常好的那燼在控制檯輸出錯誤信息,在我的情況,這表明
Error: assertion failed: The route posts was not found
我忘了添加/post
路由器,然後在我加入 App.Router。地圖 - > this.resource('about') this.resource('posts')
所有事情都可以恢復工作!
scripts/app.js
但你有文件有scripts/main.js
window.App = Ember.Application.create();
posts
和about
,否則Ember將爲{{#linkTo}}
傭工拋出錯誤。