我可以在字符串中添加ng-include URL吗? [英] Can I append a string with the ng-include URL?
本文介绍了我可以在字符串中添加ng-include URL吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以做这样的事情吗:
Can I do something like this :
< div ng-include ="{{data}}模板"></div>
-要求在模板网址后附加一个常量字符串.
<div ng-include="{{data}}Template"></div>
-- Requirement is to append a constant string with the template URL.
推荐答案
是的,您可以这样做,
<div ng-include="data+'Template' "></div>
这篇关于我可以在字符串中添加ng-include URL吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文