angular.js/test/ng
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
..
directive fix(ngClass): keep track of old ngClass value manually 2013-02-18 20:25:43 -08:00
filter feat(filter): Add comparison function to filter 2013-02-14 14:43:55 -08:00
anchorScrollSpec.js fix($sniffer): report history false on Android < 4 2012-05-14 15:12:51 -07:00
browserSpecs.js fix($cookies): set cookies on Safari&IE when base[href] is undefined 2013-02-07 02:36:25 -08:00
cacheFactorySpec.js feat($cacheFactory): cache.put now returns the added value 2012-11-25 00:01:34 +01:00
compileSpec.js feat($compile): add attribute binding support via ngAttr* 2013-02-27 00:55:40 -08:00
controllerSpec.js chore(controller): allow setting map of controllers 2012-05-04 15:50:37 -07:00
documentSpec.js chore(module): move files around in preparation for more modules 2012-03-28 11:16:35 -07:00
exceptionHandlerSpec.js chore(module): move files around in preparation for more modules 2012-03-28 11:16:35 -07:00
httpBackendSpec.js fix($httpBackend): patch for Firefox bug w/ CORS and response headers 2013-02-14 16:45:30 -08:00
httpSpec.js fix($http): do not encode special characters @$:, in params 2013-02-14 14:52:46 -08:00
interpolateSpec.js fix($parser): string concatination with undefined model 2012-09-06 16:06:21 -07:00
localeSpec.js chore(module): move files around in preparation for more modules 2012-03-28 11:16:35 -07:00
locationSpec.js fix($location): reset $location.$$replace with every watch call 2012-11-26 23:21:02 +01:00
logSpec.js feat($log): add $log.debug() 2013-01-17 16:47:39 -08:00
parseSpec.js feat($parse): added constant and literal properties 2013-02-14 14:43:56 -08:00
qSpec.js feat($q): $q.all() now accepts hash 2013-02-25 10:58:05 -08:00
rootElementSpec.js feat($rootElement): added application root element 2012-06-02 14:50:58 -07:00
rootScopeSpec.js feat(scope): only evaluate constant $watch expressions once 2013-02-14 14:43:56 -08:00
routeParamsSpec.js fix($route): support route params not separated with slashes. 2013-01-16 09:41:02 -08:00
routeSpec.js feat(routeProvider): Add support to catch-all parameters in routes 2013-02-14 21:36:59 -08:00
snifferSpec.js fix(CSP): update to the latest CSP api 2012-11-15 01:46:58 +01:00
timeoutSpec.js fix($timeout): allow calling $timeout.cancel() with undefined 2012-06-04 17:43:14 -07:00
windowSpec.js chore(module): move files around in preparation for more modules 2012-03-28 11:16:35 -07:00