Why do we use form or ng-submit in angularjs?

后端 未结 2 511
日久生厌
日久生厌 2021-01-25 00:09

I am planning to have an angularjs application. We will be doing the CRUD operation using Web Api service. And these controller functions I can call from ng-click directive (I m

2条回答
  •  长发绾君心
    2021-01-25 00:55

    Not much different,but ng-submit would be prevent by input[required] etc. ng-click is unlimited

提交回复
热议问题