0

I want to do something like that, Can it be possible in angularjs

ng-change=\"myDirective = [test]\"

i.e. I simply want to call my directive on ng-change , is it possible in angularjs to call custom directive inside directive.

1 Answer 1

1

yes it is possible but for doing this you need another directive for watching changes on your myDirective variable...

when you change value of myDirective middleware directive catches changes and rebuild dom.

I created such a directive for another problem but it can be used in your situation so I edit this PLUNKER for you...

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.