Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get text for ng-options?
Message
 
 
À
Tous
Information générale
Forum:
AngularJS
Catégorie:
Codage, syntaxe et commandes
Titre:
How to get text for ng-options?
Divers
Thread ID:
01646832
Message ID:
01646832
Vues:
36
Hi everybody,

Suppose I have the following markup
 <div class="col-xs-6">
                <label class="control-label">@Labels.activityEvent:</label>
                <select class="form-control" ng-model="currentOperatorsNotification.activType"
                        ng-options="t.value as t.text for t in metaData.events"></select>
            </div>
I want to be able to get the currently selected item text into a property. How can I do that with ng-options?

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform