Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes to directive value do not trigger changes #204

Open
DaSchTour opened this issue Aug 24, 2017 · 1 comment
Open

Changes to directive value do not trigger changes #204

DaSchTour opened this issue Aug 24, 2017 · 1 comment

Comments

@DaSchTour
Copy link

As I understood from the documentation it should be possible to change the input value of a directive. But in fact changing the value doesn't do anything.
See my example here: https://plnkr.co/edit/eHkmFJmmskANN7JUoMmT

@aciccarello
Copy link
Collaborator

That example does not work because the input name is the same as the directive name. Does anyone know if that is supposed to be supported?

Here is an example of ngOnChanges working for a directive: https://plnkr.co/edit/xJQb71v6XeqvzZoc6yJo?p=preview

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants