I\'ve set up my controllers using data-ng-controller=\"xyzController as vm\"
I have a scenario with parent / child nested controllers. I have no problem
Some times you may need to update parent properties directly within child scope. e.g. need to save a date and time of parent control after changes by a child controller. e.g Code in JSFiddle
HTML
event.date = {{event.date}}
event.time = {{event.time}}
event.date = {{event.date}}
event.time = {{event.time}}
event.date:
event.time:
JS
function Parent($scope) {
$scope.event = {
date: '2014/01/1',
time: '10:01 AM'
}
}
function Child($scope) {
}