从$ scope获取所有表单

时间:2015-11-02 14:44:46

标签: angularjs

  1. 是否可以从$ scope获取所有表单并将其设置为prestine? 到目前为止,我一直使用表单名称设置prestine状态,例如

    .linkedin { display: inline-block; background-image: url('../images/Linkedin(Idle).png'); background-repeat: no-repeat; background-position: 0 0; width: 16px; height: 16px; }

  2. $scope.coachingSessionFrm.$setPristine()方法删除脏标志,以便表单元素的状态现在被视为setPrestine()对吗?只有在clean之后更改它们才会变脏?

0 个答案:

没有答案
相关问题