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 @@ -907,6 +907,21 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
907
907
} ;
908
908
909
909
Attributes . prototype = {
910
+ /**
911
+ * @ngdoc method
912
+ * @name $compile.directive.Attributes#$normalize
913
+ * @kind function
914
+ *
915
+ * @description
916
+ * Converts an attribute name (e.g. dash/colon/underscore-delimited string, optionally prefixed with `x-` or
917
+ * `data-`) to its normalized, camelCase form.
918
+ *
919
+ * Also there is special case for Moz prefix starting with upper case letter.
920
+ *
921
+ * For further information check out the guide on {@link guide/directive#matching-directives Matching Directives}
922
+ *
923
+ * @param {string } name Name to normalize
924
+ */
910
925
$normalize : directiveNormalize ,
911
926
912
927
@@ -2485,13 +2500,6 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
2485
2500
var PREFIX_REGEXP = / ^ ( (?: x | d a t a ) [ \: \- _ ] ) / i;
2486
2501
/**
2487
2502
* Converts all accepted directives format into proper directive name.
2488
- * All of these will become 'myDirective':
2489
- * my:Directive
2490
- * my-directive
2491
- * x-my-directive
2492
- * data-my:directive
2493
- *
2494
- * Also there is special case for Moz prefix starting with upper case letter.
2495
2503
* @param name Name to normalize
2496
2504
*/
2497
2505
function directiveNormalize ( name ) {
You can’t perform that action at this time.
0 commit comments