In a template, i am calling component as:
{{comp-name data=controllerData}}
If i change the data in component, controller's controllerData also getting changed due to implicit two way binding. I have two questions:
1) How to make it as one way binding. So that only changes from controller's controllerData propagate to component's data.
2) There should be no binding at all. Means, if i change data in either component or controller. It should not reflect in other thing.
Aucun commentaire:
Enregistrer un commentaire