Closed CoreyFedde closed 7 years ago
I think you'd have to update an object that the parent thing (route or component) has visibility of.
It looks like ember object should be kept out of the route.
The fix for this was creating a parent component that lives between the Loans route and the two drop-down components.
Data down and action up, but what about passing data to a sibling component.
I have two components under my Loans template: drop-down and tools-drop-down.
Drop down send a selectedLoan object up to the Loans router, but I am having trouble sending the selectedLoan object down to the tools-drop-down.
I have tried following the trails and console logging, as well as changing how the data is passed.
Currently I am console logging selectedLoan.value in the tools-drop-down js file and trying to call the ember variable in the template. I am not getting any errors, but the console logs aren't appearing.
Loans js
Loans template
Drop-down js
drop-down template
Tools-drop-down js
Tools template