MCPcopy Create free account
hub / github.com/apache/cloudstack / directiveNormalize

Function directiveNormalize

tools/ngui/static/js/lib/angular.js:4677–4679  ·  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

4675 * @param name Name to normalize
4676 */
4677function directiveNormalize(name) {
4678 return camelCase(name.replace(PREFIX_REGEXP, ''));
4679}
4680
4681/**
4682 * @ngdoc object

Callers 2

collectDirectivesFunction · 0.85
angular.jsFile · 0.85

Calls 2

camelCaseFunction · 0.85
replaceMethod · 0.80

Tested by

no test coverage detected