angular.js/docs/content/guide
Luis Ramón López cf17c6af47 feat($compile): add attribute binding support via ngAttr*
Sometimes is not desirable to use interpolation on attributes because
the user agent parses them before the interpolation takes place. I.e:

<svg>
  <circle cx="{{cx}}" cy="{{cy}}" r="{{r}}"></circle>
</svg>

The snippet throws three browser errors, one for each attribute.

For some attributes, AngularJS fixes that behaviour introducing special
directives like ng-href or ng-src.

This commit is a more general solution that allows prefixing any
attribute with "ng-attr-", "ng:attr:" or "ng_attr_"  so it will
be set only when the binding is done. The prefix is then removed.

Example usage:

<svg>
  <circle ng-attr-cx="{{cx}}" ng-attr-cy="{{cy}}" ng:attr-r="{{r}}"></circle>
</svg>

Closes #1050
Closes #1925
2013-02-27 00:55:40 -08:00
..
bootstrap.ngdoc feat(JQLite): ready() now supports document.readyState=='complete' 2013-02-25 15:32:14 -08:00
compiler.ngdoc docs(guide): minor grammar fixes 2013-01-17 19:10:46 -05:00
concepts.ngdoc docs(guide): Fix typos in concepts/model,view. 2013-02-14 13:05:25 -08:00
dev_guide.e2e-testing.ngdoc docs(guide): minor grammar fixes 2013-01-17 19:10:46 -05:00
dev_guide.mvc.ngdoc docs(guide): minor grammar fixes 2013-01-17 19:10:46 -05:00
dev_guide.mvc.understanding_controller.ngdoc docs(guide): minor grammar fixes 2013-01-17 19:10:46 -05:00
dev_guide.mvc.understanding_model.ngdoc docs(guide): minor grammar fixes 2013-01-17 19:10:46 -05:00
dev_guide.mvc.understanding_view.ngdoc docs(guide): minor grammar fixes 2013-01-17 19:10:46 -05:00
dev_guide.services.$location.ngdoc doc(guide): Fix examples of $location.html5mode 2013-01-17 23:43:13 -05:00
dev_guide.services.creating_services.ngdoc docs(guide): minor grammar fixes 2013-01-17 19:10:46 -05:00
dev_guide.services.injecting_controllers.ngdoc docs(*): simplify doc urls 2012-06-12 00:10:18 -07:00
dev_guide.services.managing_dependencies.ngdoc docs(guide): minor grammar fixes 2013-01-17 19:10:46 -05:00
dev_guide.services.ngdoc docs(guide): minor grammar fixes 2013-01-17 19:10:46 -05:00
dev_guide.services.testing_services.ngdoc doc(devguide) - Fix typos and small grammatical errors in the developer guide. 2012-08-30 16:02:24 -07:00
dev_guide.services.understanding_services.ngdoc docs(guide): minor grammar fixes 2013-01-17 19:10:46 -05:00
dev_guide.templates.css-styling.ngdoc docs(typos): fix typos in dev guide 2012-08-30 15:43:58 -07:00
dev_guide.templates.databinding.ngdoc docs(guide): minor grammar fixes 2013-01-17 19:10:46 -05:00
dev_guide.templates.filters.creating_filters.ngdoc docs(*): simplify doc urls 2012-06-12 00:10:18 -07:00
dev_guide.templates.filters.ngdoc docs(guide): remove stale info about filters changing DOM 2013-02-06 14:14:49 -08:00
dev_guide.templates.filters.using_filters.ngdoc docs(*): simplify doc urls 2012-06-12 00:10:18 -07:00
dev_guide.templates.ngdoc docs(guide): minor grammar fixes 2013-01-17 19:10:46 -05:00
dev_guide.unit-testing.ngdoc doc(guide): Fixed typos at the unit tests guide 2013-01-17 23:43:13 -05:00
di.ngdoc docs(guide): change prototype methods to scope methods in DI examples 2013-01-18 00:49:41 -05:00
directive.ngdoc feat($compile): add attribute binding support via ngAttr* 2013-02-27 00:55:40 -08:00
expression.ngdoc docs(guide): minor grammar fixes 2013-01-17 19:10:46 -05:00
forms.ngdoc docs(guide): minor grammar fixes 2013-01-17 19:10:46 -05:00
i18n.ngdoc docs(*): simplify doc urls 2012-06-12 00:10:18 -07:00
ie.ngdoc docs(guide): minor grammar fixes 2013-01-17 19:10:46 -05:00
index.ngdoc doc(guide) simplify the guide home page 2012-08-27 14:59:17 -07:00
introduction.ngdoc docs(guide): minor grammar fixes 2013-01-17 19:10:46 -05:00
module.ngdoc docs(module): fix code example 2013-02-06 20:40:06 +01:00
overview.ngdoc docs(guide): minor grammar fixes 2013-01-17 19:10:46 -05:00
scope.ngdoc docs(guide): minor grammar fixes 2013-01-17 19:10:46 -05:00
type.ngdoc chore(docs): re-skin main documentation 2012-05-04 16:12:17 -07:00