MCPcopy Create free account
hub / github.com/binux/qiandao / directiveNormalize

Function directiveNormalize

web/static/components/angularjs/angular.js:7095–7097  ·  view source on GitHub ↗

* Converts all accepted directives format into proper directive name. * All of these will become 'myDirective': * my:Directive * my-directive * x-my-directive * data-my:directive * * Also there is special case for Moz prefix starting with upper case letter. * @param name Name to norm

(name)

Source from the content-addressed store, hash-verified

7093 * @param name Name to normalize
7094 */
7095function directiveNormalize(name) {
7096 return camelCase(name.replace(PREFIX_REGEXP, ''));
7097}
7098
7099/**
7100 * @ngdoc type

Callers 2

collectDirectivesFunction · 0.85
angular.jsFile · 0.85

Calls 1

camelCaseFunction · 0.85

Tested by

no test coverage detected