0

I'm using a custom jquery plugin which transforms table to a tree. And when i'm loading data from ng model i need to recall plugin's constructor. but i can not find that event, when i need to call that. I've tried to $watch model variable - doen't work well

1 Answer 1

1

You should create a new directive instead of doing this in a controller.

By using a directive, you'll be sure that the code located in its link function is applyed after DOM complilation.

It is intended to do what you want.

see http://docs.angularjs.org/guide/directive

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.