How do I get the ng-model of a select tag to get the initially-selected option?

前端 未结 6 1779
一个人的身影
一个人的身影 2021-01-13 06:41

I\'m pretty new to Angular, so I may be going about this all wrong...

I have a

6条回答
  •  南方客
    南方客 (楼主)
    2021-01-13 07:35

    You can try to set the initial value of mySelectedValue in your Controller like so:

    $scope.mySelectedValue = '';
    

提交回复
热议问题