Value is not binding with scope's variable if used inside uib-tabset

后端 未结 2 1530
旧巷少年郎
旧巷少年郎 2021-01-04 14:12

Value is not binding with scope\'s variable if used inside uib-tabset. Here in following example I tried to get $scope.message inside uib-tab and outside of it

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-04 15:03

    You can solve this issue by creating an object on the scope and then adding the property on object instead of the scope inside the controller.

      $scope.obj = {message : 'my message'};
    

    You can verify this in the below plunker link

    http://plnkr.co/edit/3koAJnkOyf6hfGwO6AuD?p=preview

提交回复
热议问题