我正在使用 Grails Sitemesh Content Blocks使用 Grails 2.2.2
进行页面装饰问题是 Angular 无法识别 HTML <content>
sitemesh 提供的标签,因此我想在该标签中显示的每个变量都不会显示。
例如
<div ng-app="myApp" ng-controller="myController">
<span>{{some.variable}}</span>// works
<content>
<span>{{some.variable}}</span>// DONT WORKS!! (not displaying)
</content>
</div>
有没有办法让 Angular 识别 <content>
标签 ?
或者我应该做些什么来让它发挥作用。
谢谢
最佳答案
查看您的源页面,看看内容标记是否仍然存在。如果不是,那么它与 Angular 无关,但可能与 sitemesh 有关。我相信在 Grails 下,内容标签需要一个属性标签,然后在 g:propertyPage 标签库中调用该属性标签来呈现其内容
关于javascript - 带有 Grails <content> 标签的 Angularjs,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21574075/