angularjs - Trigger ng-model change on radio button? -
i have form radio buttons this:
label.has_checkbox(for="workflow_{{workflowslug}}") input(type="radio" ng-model="form.workflow.slug" value="{{workflowslug}}" name="workflow" id="workflow_{{workflowslug}}")
now when operate app manually , click radio, model set value of radio. problem when trigger click using jquery, radio button gets selected, model doesn't populated value.
in angular supposed opposite direction. data affects view. if want set value programmatically should change ng-model
within angular scope.
Comments
Post a Comment