Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Scope in modal not accessible from controller #2340

Closed
akarelas opened this issue Jun 14, 2014 · 1 comment
Closed

Scope in modal not accessible from controller #2340

akarelas opened this issue Jun 14, 2014 · 1 comment

Comments

@akarelas
Copy link

Suppose I open the modal with

$modal.open({
    scope: $scope,
    controller: 'ModalCtrl',
    templateUrl: 'partials/modal.html'
})

Then ModalCtrl $scope won't contain the scope variables created by the directives in the template. For example the variables filled-in by form elements.

The expected behaviour is that $scope in ModalCtrl is the same as the scope in the template.

@pkozlowski-opensource
Copy link
Member

See #2143

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants