I\'m trying to pass a form input to my dialog (as title for example). The problem is: it don\'t get the form $scope.
$scope
If I set the $scope si
Keep it minimal
and create a controller with scope variables on the fly
$scope.expandTask = (e, task) => $mdDialog.show({ templateUrl: 'dialog.template.html', controller: $scope => $scope.taskName = task.name })
taskName is now a $scope variable and can be used in the dialog template
taskName