see the code and tell me why model data can not be updated from child scope ?
- "text" ng-model="data">
- if="true">
- "text" ng-model="data">
see the below code again and tell me what special things is there for which model in parent scope is updating from inside the child scope ?
- "text" ng-model="data.input">
- if="true">
- "text" ng-model="data.input">
they use just data.input and parent data is updated from child scope....this is not clear. what is so special in .input keyword ?
please help me to understand how second example can update parent data just by .input keyword ?
also tell me when child scope gets created ? when we use ng-if or ng-show then ?
thanks
Posted May 22, 2017, 4:36 AM