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

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -