I am updating one scope variable from an ngDialog popup.
View :
<input type="radio" name="file_selector" value={{file.id}} ng-model="selected_file.id" ></input>
controller.js
$scope.selected_file = {'id' : '22'};
If I have the above view in non-popup HTML, ng-model updates and view changes.
ngDialog :
$scope.openUploadPopup = function() {
ngDialog.open({
template: 'partials/upload.html',
controller: 'notificationController',
className: 'ngdialog-theme-default',
scope: $scope
});
}
Edit : Plunker : http://plnkr.co/edit/8TUtwixKwvVaycDuvHd9?p=preview