ng-model is undefined in controller

前端 未结 5 966
醉话见心
醉话见心 2020-12-10 03:56

I\'m using ionic and I have the following view:


  

        
5条回答
  •  离开以前
    2020-12-10 04:15

    $scope.user = {};
    $scope.submitForm = function (isValid) {
       if (($scope.user.name || '').length > 0){ //Code }
    }
    

提交回复
热议问题