【发布时间】:2015-02-08 13:04:38
【问题描述】:
在我的文件 home.js 中有
.state('app.profile', {
url : '/profile',
views : {
'appContent' : {
templateUrl: '../templates/profile.html',
controller: 'HomeController'
}
}
})
在我的文件 profile.html 中有这个
<ion-view title="Profile">
<ion-content>
<!--somethings here-->
</ion-content>
</ion-view>
我的目录
js
home.js
templates
profile.html
但我不能让它工作。请帮我解决这个错误!
【问题讨论】:
-
这个老问题似乎无法解释问题是什么,所以我投票结束。如果可以,请编辑。
标签: javascript html templates state angularjs-routing