"It solves your issues regarding using the proper name attributes, etc. "
angular.bootstrap(document.documentElement, ['itaas.main']);you're right, i had solved the issue only for the 'http-equiv' vs 'name'=20 tags. Did not take property into account. It's been updated: http://pastebin.com/hBp7yxGJ (line 111) So basically anywhere in your app you can run something like this:MetaService.set([
{title: 'Heres a title'},
{name: 'description', content: 'Description'},
{canonical: 'http://....'},
{rel: 'image_src', href: '/path/to/image'},
{property: 'og:title', content: 'title'},
{property: 'og:description', content: 'Description'},
{property: 'og:image', content: '/path/to/image'},
{property: 'og:url', content: url}
]);
and in your head:<meta ng-attr-name=3D"{{ meta.name }}" ng-attr-property=3D"{{ meta.property= }}"=20 ng-attr-http-equiv=3D"{{ meta['http-equiv'] }}" ng-attr-content=3D"{{=20 meta.content }}" ng-attr-charset=3D"{{ meta.charset }}" ng-attr-data-ng-rep= eat =3D"meta in metas">
We would expect Angular to be able to bind to this, but when we check the console we see something likeError: Invalid value for attribute cx="{{cx}}". Because of the SVG DOM API's restrictions, you cannot simply writecx="{{cx}}".
With ng-attr-cx you can work around this problem.
If an attribute with a binding is prefixed with thengAttrprefix (denormalized asng-attr-) then during the binding it will be applied to the corresponding unprefixed attribute. This allows you to bind to attributes that would otherwise be eagerly processed by browsers (e.g. an SVG element'scircle[cx]attributes). When usingngAttr, theallOrNothingflag of $interpolate is used, so if any expression in the interpolated string results inundefined, the attribute is removed and not added to the element.
For example, we could fix the example above by instead writing:
<svg>
<circle ng-attr-cx="{{cx}}"></circle>
</svg><meta ng-attr-name="{{ meta.name }}" ng-attr-property="{{ meta.property }}" ng-attr-http-equiv="{{ meta['http-equiv'] }}" ng-attr-content="{{ meta.content }}" ng-attr-charset="{{ meta.charset }}" ng-attr-data-ng-repeat="meta in metas" class="ng-scope" name="" property="og:description" http-equiv="" content="Bacon ipsum dolor sit amet leberkas fatback spare ribs, bresaola ribeye ground round beef ribs. Pig frankfurter porchetta pork" charset="">--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/GSmsMQafqNI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.