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

ng-model not working correctly in Modal controller #2393

@shuai-zh

Description

@shuai-zh

I tried to leverage ng-model to bind an input with the variable defined in the modal controller, however the binding seems not working bi-directionally.

I created a plunkr here:http://plnkr.co/edit/eWREEocGXmscYsPvT2s4?p=preview

As you can click one of the buttons to open a modal and then change the value of the input. Click OK button to see the $scope.testText hasn't changed as expected.

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