Hi,
I try to do the following:
if an option is selected on a dropdown field a checkbox should be set to
true and simulate a ng-click event on this checkbox.
Here's the code I've tried yet:
the dropdown:
li
label {{ YL.choose_a_grid_type }}
select(ng-model="obj.module.grid_type", ng-options="grid_type.res as
grid_type.description for grid_type in globalvars.GridTypesDefault")
the checkbox:
li(ng-if="obj.module.grid_type!='THREE_PHASE_DELTA'", class="animate-if")
label {{ YL.calc_ull }}
input(ng-model="obj.module.calc_ull", type="checkbox",
ng-click="convertNominalVoltage(obj.module.nominal_voltage,
obj.module.calc_ull)")
If dropdown-option is "THREE_PHASE_DELTA" set checkbox to true and simulate
ng-click.
I tried "ng-checked" as well but this only change the view of checkbox and
does not update the model or simulate the click.
Any help would be very appreciated!
Thank you!
Cheers
Christoph
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.