1.TypeError: Cannot read property '$valid' of undefined
a. Add ng-submit
attribute to the form:
<form name="myForm" ng-submit="SaveAndNext()" novalidate>
b. ng-click 过程中加入参数
ng-click="SaveAndNext(myForm)"
详情参考:http://stackoverflow.com/questions/29096161/cannot-read-property-valid-of-undefined