在angularjs中提交后重置星级 [英] Reset star rating after submit in angularjs
本文介绍了在angularjs中提交后重置星级的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好我正在使用星级评级选项,表格提交使用angularjs,如下面的jsfiddle
StarRating - JSFiddle
一切正常。
但我想在提交表格后将星级评定重置为默认值。有谁可以帮我实现这个目标?
谢谢
我尝试过:
我试图在提交后将指令函数从控制器调用到指令。但它不起作用
解决方案
请检查bewlo解决方案。
StarRating - JSFiddle [ ^ ]
Hi I am using star rating option with form submit using angularjs like in the following jsfiddle
StarRating - JSFiddle
all are working fine.
But I want to reset star rating to default after submit form. anyone can help me to achieve this?
Thanks
What I have tried:
I tried to call directive function from controller to directive after submit. but it doesn't work
解决方案
Please check the bewlo solution.
StarRating - JSFiddle[^]
这篇关于在angularjs中提交后重置星级的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文