iron-meteor / iron-router

A client and server side router designed specifically for Meteor.
MIT License
1.98k stars 413 forks source link

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

Open rcmuzio opened 6 years ago

rcmuzio commented 6 years ago

¿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'); } })