Is there any convenient way to check if a DOM element is `$compile`d in AngularJS? -


i'm trying integrate plain javascript library angularjs, in need manually $compile dom elements. i'm doing compilation this:

$compile(e.srcelement)($scope); 

e.srcelement dom element want $compile.

i wonder, if there established way check if given dom element has been compiled.

i know it's possible if attach data attributes dom during compiling, , try retrieve later. want know if there existing method in angularjs.

thank you!

within directives compile function, parents have been compiled. children have not yet. siblings have been compiled if priority number greater current directive's priority:

   compile: function (element, attr){            element.children(); // not compiled            elements.parents(); // compiled            elements.siblings(); // compiled if priority > current directive priority.  if same, not defined.    }); 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -