Home angular material get selected option name when form submit
Reply: 0

angular material get selected option name when form submit

sk juli kaka
1#
sk juli kaka Published in 2018-02-14 04:28:40Z

I have code like this

<md-form-field>
    <md-select ng-model='title_page' required>
        <md-option ng-repeat = "option in respons" ng-value = "{{option.group_id}}">{{option.group_name}}</md-option>
    </md-select>
</md-form-field>

When my form submit, I want get both value and name, I known that if i want get value

console.log($scope.title_page);

How I can get name?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.592694 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO