Hey guys,
my situation is following:
I've got a menu and when I click on a Link of it, a function from a factory
is called with
*var layout = compile('<mydirective
asdf=asdf()></mydirective>')($rootScope); *
*$(section.wi).append(layout);*
My directive is well defined and the directive is replaced by the template: *<a
ng-click="asdf()">*
Also I have used one-way-data-binding in my isolated scope of the
directive: *scope {asdf = '&'}*
The function asdf() is handled by the parent-controller where the directive
is appended.
When I write my directive simply into <section class="wi"></section> of my
html-file the ng-click works,
but for all directive-elements that are appended by my factory the ng-click
does not work.
Can anyone explain whats wrong?
--
You received this message because you are subscribed to the Google Groups
"AngularJS" 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 http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.