diff --git a/angularjs/angular-tests.ts b/angularjs/angular-tests.ts index 975059999..fed501acd 100755 --- a/angularjs/angular-tests.ts +++ b/angularjs/angular-tests.ts @@ -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){}, diff --git a/angularjs/angular.d.ts b/angularjs/angular.d.ts index c7c90efe5..158af1f6d 100755 --- a/angularjs/angular.d.ts +++ b/angularjs/angular.d.ts @@ -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