How to update a parent component from a child component
In AngularJS 1.5+, components follow a unidirectional data flow, meaning that child components cannot directly modify parent component data. Instead, AngularJS provides mechanisms like one-way binding (<) and callback functions….