$scope.myVariable not updated in controller for angular-ui bootstrap modal

前端 未结 2 842
余生分开走
余生分开走 2021-02-13 06:06

In my view I have an input, a span and a button like so:



        
2条回答
  •  有刺的猬
    2021-02-13 06:25

    ng-include creates a new scope. So pass a object instead of string

    $scope.phone={number:null}

    The template then looks like

    
    

    Look at this wiki to understand the issues with prototypal inheritance.

提交回复
热议问题