Using ng-repeat to generate select options (with Demo)

前端 未结 2 1253
别那么骄傲
别那么骄傲 2020-11-30 15:27

controller:

$scope.send_index = function(event, val){ 
    console.log(val);
    $scope.variable = \'vm.areas[\'+val+\'].name\';
    console.log( $scope.var         


        
2条回答
  •  隐瞒了意图╮
    2020-11-30 16:03

    This is not the correct way to use ng-model with a


    model = {{data.model}}

提交回复
热议问题