基于angular bootstrap,对于<input type="hidden">ng-modal不能自动更新。看起来是ag的一个bug。最简单的解决,将type改为text,增加style="display:none",即可。即不影响显示,又能实现目的。
<input type="text" name="articleid" ng-model="data.articleid" style="display: none;"/>
<input type="text" name="classid" ng-model="classid" style="display: none;"/>