This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree 1 file changed +15
-7
lines changed
1 file changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -653,6 +653,21 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
653
653
} ;
654
654
655
655
Attributes . prototype = {
656
+ /**
657
+ * @ngdoc method
658
+ * @name $compile.directive.Attributes#$normalize
659
+ * @kind function
660
+ *
661
+ * @description
662
+ * Converts an attribute name (e.g. dash/colon/underscore-delimited string, optionally prefixed with `x-` or
663
+ * `data-`) to its normalized, camelCase form.
664
+ *
665
+ * Also there is special case for Moz prefix starting with upper case letter.
666
+ *
667
+ * For further information check out the guide on {@link guide/directive#matching-directives Matching Directives}
668
+ *
669
+ * @param {string } name Name to normalize
670
+ */
656
671
$normalize : directiveNormalize ,
657
672
658
673
@@ -1986,13 +2001,6 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
1986
2001
var PREFIX_REGEXP = / ^ ( x [ \: \- _ ] | d a t a [ \: \- _ ] ) / i;
1987
2002
/**
1988
2003
* Converts all accepted directives format into proper directive name.
1989
- * All of these will become 'myDirective':
1990
- * my:Directive
1991
- * my-directive
1992
- * x-my-directive
1993
- * data-my:directive
1994
- *
1995
- * Also there is special case for Moz prefix starting with upper case letter.
1996
2004
* @param name Name to normalize
1997
2005
*/
1998
2006
function directiveNormalize ( name ) {
You can’t perform that action at this time.
0 commit comments