angularjs - Added $normalize to IAttributes

This commit is contained in:
unknown 2015-07-09 12:01:43 +02:00
parent 53b3ea17db
commit 146e3fbff1
2 changed files with 10 additions and 0 deletions

View File

@ -281,6 +281,7 @@ function test_IAttributes(attributes: ng.IAttributes){
}
test_IAttributes({
$normalize: function (classVal){},
$addClass: function (classVal){},
$removeClass: function(classVal){},
$set: function(key, value){},

View File

@ -419,6 +419,15 @@ declare module angular {
*/
[name: string]: any;
/**
* Converts an attribute name (e.g. dash/colon/underscore-delimited string, optionally prefixed with x- or data-) to its normalized, camelCase form.
*
* Also there is special case for Moz prefix starting with upper case letter.
*
* For further information check out the guide on @see https://docs.angularjs.org/guide/directive#matching-directives
*/
$normalize(name: string): void;
/**
* Adds the CSS class value specified by the classVal parameter to the
* element. If animations are enabled then an animation will be triggered