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

data binding not working for me #14

Closed
liujoey opened this issue Jan 21, 2015 · 1 comment
Closed

data binding not working for me #14

liujoey opened this issue Jan 21, 2015 · 1 comment

Comments

@liujoey
Copy link

liujoey commented Jan 21, 2015

in the directive, when it first been initialized, it gets the data from outside model.

scope: {
                treeData: '=ngModel',
                shouldApply : '&'
            },

For instance I have assigned home.treeData to the directive, so scope.treeData also has the same data. Now if I change the value of home.treeData, it seem the scope.treeData was not updating, what am I doing wrong?

@ezraroi
Copy link
Owner

ezraroi commented Jan 21, 2015

Hi,
check the demo code. If you still have questions, create a plunker and I will look on it

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