Is there a way to set a property on a parent controller from inside a component?
I have a component that acts as a file input, when the user added a new image there is some code that runs to read the dataUrl of that image and sets a property to the dataUrl. When I add an image tag in the components handlebars template it works fine, but if I add an image tag and set the source to the same property in the index handlebars template it doesn’t work.
I’m assuming this means that the property is being set in that view and not on the controller.
I’ve tried setting it by typing
this.set('controller.image',image.imageUrl); but this doesn’t seem to be working either.