Skip to content

Is it possible to get access to parent scopes on onEnter callback? #190

@amitava82

Description

@amitava82

I'm looking at the dialog example, basically I want to define the dialog (with options and resolves etc) in parent scope and then in onEnter callback I'd just call:

dialog.open().then(function(result){
    $scope.$parent.doThing(result);
})

That way I can keep my state definition block clean.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions