0

i want to to get value from md select but i don't know how to do that

<md-option ng-value="{"region":"United Arab Emirates","country_code":"ae","url":"google.ae"}">Test
</md-option>

I want to get value from select option and create a link Like This

 <a href="www.(my url link get here from select)/&gl=(my country_code get here from select)"></a>
georgeawg
  • 48,608
  • 13
  • 72
  • 95
A-KAY GAUR
  • 1
  • 1
  • 2

1 Answers1

0

You need to store the data into the "model" attribute of the parent "md-select".

<md-select ng-model="someModel">
   <md-option ng-value="{"region":"United Arab Emirates","country_code":"ae","url":"google.ae"}">Test
   </md-option>
<md-select>

The value is then set to the variable "someModel" in your Controller and you typically access it via $scope.someModel

allkenang
  • 1,511
  • 15
  • 12