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

can be read from a controller, variables from another controller? #1594

Open
rcmuzio opened this issue Oct 26, 2017 · 0 comments
Open

can be read from a controller, variables from another controller? #1594

rcmuzio opened this issue Oct 26, 2017 · 0 comments

Comments

@rcmuzio
Copy link

rcmuzio commented Oct 26, 2017

¿from controller B, I can read the variable Year of controller A?

controllerA=RouterController.extend({
data:function(){
this.state.set('year',1992);
}
})

controlleB=controllerA.extend({
data:function(){
return this.state.get('year');
}
})

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

1 participant