Hi Yakove,
I'm not sure if this will work, but can you try using a simple html string,
in stead of an angular.element?
like:
const htmlElement = `<${component} id="${options.id}"
options="${options}></${component}>`
const compiledElement = $compile(htmlElement)(scope)
(I'm using a template string here, you can use string concatenation if you
prefer.)
However, I'm not sure that is going to change anything. The compile returns
a POST-link function, so you are hooking the scope up, after the view if
initialized. That means that during initialization, it uses the current
scope. Simple trick might be, make sure the data is not exposed in the
current scope.
Regards
Sander
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.