MCPcopy Create free account
hub / github.com/bclinkinbeard/angular / directiveNormalize

Function directiveNormalize

test/fixtures/foo.js:7123–7125  ·  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

7121 * @param name Name to normalize
7122 */
7123function directiveNormalize(name) {
7124 return camelCase(name.replace(PREFIX_REGEXP, ''));
7125}
7126
7127/**
7128 * @ngdoc type

Callers 2

collectDirectivesFunction · 0.85
foo.jsFile · 0.85

Calls 1

camelCaseFunction · 0.85

Tested by

no test coverage detected