Angular bind in directive to run after "change" event

Asked

Viewed 178 times

0

I am working with a framework that uses Jquery to make your animations, and for data processing I use Angularjs. So I can update my $Scope, I created a directive that will give a bind to the element and generate events to elements in it. like this

element.bind('change', function () {
    console.log(e.find('div'));
});

My problem is that the angular is processing this directive before the element undergoes the changes and so not returning the existing divs at the end of the onchange... does anyone know how I can solve this?

  • 1

    I don’t quite understand, you want this directive to be called after full view loading?

  • what is occurring is that the framework "cut a div and glue" elsewhere... when this happens, the angular detects the modification and fires the bind, but it is firing before the "paste", then it ends up sending to the console only the Promise, and not the change

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.