Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

$mdDialog passing the current $scope as option #1531

@mohammedpascal

Description

@mohammedpascal

There is no option to pass the current scope to dialog, in some cases there is no need to create controller for a dialog.

I would like to do something like this:

    $mdDialog.show({
      scope: $scope, //this $scope will be the scope of the enclosing controller
      templateUrl: 'dialog1.tmpl.html',
      targetEvent: ev,
    })

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions