salesforce - VisualForce page with AngularJS tag -



salesforce - VisualForce page with AngularJS tag -

i've got interesting question.

i have visualforce page angular js.

the problem ng-repeat-end tag.

the html looks this:

<span ng-repeat-end ng-if="$last" class="a nav__links__link" data-nav="control">you here: {{breadcrumb.label}}</span>

visualforce won't save error:

attribute name "ng-repeat-end" associated element type "span" must followed ' = ' character.

so alter offending tag this:

<span ng-repeat-end="" ng-if="$last" class="a nav__links__link" data-nav="control">you here: {{breadcrumb.label}}</span>

which makes visualforce happy angular js mad error:

unterminated attribute, found 'ng-repeat-start' no matching 'ng-repeat-end' found.

how can satisfy both visualforce's parser , angularjs?

at end of day visualforce needs valid xml document. seek searching "angular + xhtml" guess? i've found https://groups.google.com/forum/#!topic/angular/8iordwksmyi example.

will ng-repeat-end="ng-repeat-end" work? remember trick attr. name attr. value what's fine workaround convert illustration <input type="checkbox" checked /> valid xhtml.

sf didn't include illustration similar you're trying , i'm not familiar angularjs... might promote hybrid apps (where have local html file without restrictions) or apps you'd build dom javascript, without having skeleton in vf other <script>s , <body>.

last not to the lowest degree - check can salvage from:

the "mobile pack": (looks it's vf sample in directory), http://www.oyecode.com/2013/06/getting-started-with-angularjs-on.html

maybe contact developers? examples can find seem "repeat" creating <table>, no <span>s...

angularjs salesforce visualforce

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

c# - Create a Notification Object (Email or Page) At Run Time -- Dependency Injection or Factory -

Set Up Of Common Name Of SSL Certificate To Protect Plesk Panel -