$compile.directive.Attributes.$normalize()

$normalize(name);

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 Matching Directives

Parameters

Param Type Details
name string

Name to normalize

doc_AngularJS
2016-03-29 16:10:14
Comments
Leave a Comment

Please login to continue.