Angular UI Modal 2 Way Binding Not Working

后端 未结 3 1416
生来不讨喜
生来不讨喜 2021-01-11 17:39

I am adding an Angular UI Modal where I am passing the scope through to the Modal Window for 2 way binding. I used the resolve method to pass the scope value. D

3条回答
  •  长情又很酷
    2021-01-11 18:14

    For me none of the above worked.

    Instead I had to do like was suggested in this comment in github.

    The variable to be binded to must be an object, not only a simple value.

    For example, if $scope.value does not work, it will work if you use $scope.someObject.value.

提交回复
热议问题