Hello I have code like this
<section>
<component1></component1>
<component2></component2>
</section>
And now in component1 I have action for save form like this
export default function Component1Controller() {
this.save = save.bind(this);
function save(valid) {
// save magic
}
}
And if is saved then I want to update view in second controller
export default function Component2Controller() {;
function update() {
//run update when component1 saved data
}
}
Its possible to do this without function $on or $watch ? any sugestions?