Main listing page has edit button. Which opens details of the edited row. Way-1: Now, if I set \"ctrl.parent.q_details.client_location\" it is bind wit
The ES6 TL;DR way
Create a controller with scope variables on the fly
let showDialog = (spaceApe) => { $mdDialog.show({ templateUrl: 'dialog.template.html', controller: $scope => $scope.spaceApe = spaceApe }) }
Template
Voilà, spaceApe can now be used in the dialog template
spaceApe
{{spaceApe | json}}