Angular - ngModel not updating when called inside ngInclude

前端 未结 3 601
傲寒
傲寒 2021-01-03 23:10

First and foremost, the plunker: http://plnkr.co/edit/v1uTz5

This is a working demo of the issue I am running into.

I have a ng-include to inc

3条回答
  •  再見小時候
    2021-01-03 23:44

    ng-include creates its own scope and it is different than outer scope. Use this.test instead of $scope.test inside ng-include template. It will work properly.

提交回复
热议问题