我有个有趣的问题。
我有一个带有角JS的VisualForce页面。
问题在于ng-repeat-end标记。
HTML如下所示:
<span ng-repeat-end ng-if="$last" class="a nav__links__link" data-nav="control">You are here: {{breadcrumb.label}}</span>VisualForce将不会保存此错误:
Attribute name "ng-repeat-end" associated with an element type "span" must be followed by the ' = ' character.因此,我将违规标记更改为:
<span ng-repeat-end="" ng-if="$last" class="a nav__links__link" data-nav="control">You are here: {{breadcrumb.label}}</span>这使VisualForce很高兴,但是JS对此错误感到疯狂:
Unterminated attribute, found 'ng-repeat-start' but no matching 'ng-repeat-end' found.如何同时满足VisualForce的解析器和AngularJS?
发布于 2014-06-20 03:50:13
最后,Visualforce需要一个有效的XML文档。尝试搜索“角+ XHTML”我猜?例如,我找到了https://groups.google.com/forum/#!topic/angular/8iorDWKsMyI。
ng-repeat-end="ng-repeat-end"会起作用吗?我记得那个和阿塔尔玩的把戏。名字叫阿塔尔。值是一个非常好的解决方法,可以将<input type="checkbox" checked />转换为有效的XHTML。
SF本身没有包括一个类似于您试图做的例子,我不熟悉AngularJS.他们可能会推广它,但只适用于混合应用程序(在这些应用程序中,您可以在没有限制的情况下拥有本地HTML文件),或者您可以从javascript构建DOM的应用程序,除了<script>和<body>之外,在VF中没有任何框架。
最后但并非最不重要的-检查你能从什么地方抢救出:
或者联系开发商?我能找到的所有例子似乎只是“重复”通过创建一个<table>,没有<span>的.
https://stackoverflow.com/questions/24314808
复制相似问题