【发布时间】:2014-12-07 10:35:45
【问题描述】:
我正在开发一个 rails + angularjs 应用程序。
这是我的文件结构:
app/
assets/
javascript/
templates/
home.html
partial.html
在 home.html.erb 文件中,我想包含 partial.html.erb 文件。
home.html.erb
<ng-include src="'partial.html'"></ng-include>
我也试过
<ng-include src="'<%= asset_path('partial.html') %>'"></ng-include>
但还是不行……谢谢你的帮助
【问题讨论】:
标签: ruby-on-rails angularjs templates partial-views angularjs-ng-include