MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / directiveIsMultiElement

Function directiveIsMultiElement

code/songhop/www/lib/angular/angular.js:7791–7802  ·  view source on GitHub ↗

* looks up the directive and returns true if it is a multi-element directive, * and therefore requires DOM nodes between -start and -end markers to be grouped * together. * * @param {string} name name of the directive to look up. * @returns true if directive was registered a

(name)

Source from the content-addressed store, hash-verified

7789 * @returns true if directive was registered as multi-element.
7790 */
7791 function directiveIsMultiElement(name) {
7792 if (hasDirectives.hasOwnProperty(name)) {
7793 for (var directive, directives = $injector.get(name + Suffix),
7794 i = 0, ii = directives.length; i < ii; i++) {
7795 directive = directives[i];
7796 if (directive.multiElement) {
7797 return true;
7798 }
7799 }
7800 }
7801 return false;
7802 }
7803
7804 /**
7805 * When the element is replaced with HTML template then the new attributes

Callers 1

collectDirectivesFunction · 0.70

Calls 1

getMethod · 0.80

Tested by

no test coverage detected