I would like to know if there is a preference to using ng-click on a submit button or just having a ng-submit on a form?
My assumption is that we should use ng-submit on all forms and use ng-click on anything that isn't a form.
I know the differences that are listed below:
- ng-submit allows the user to press enter when focused on a form where ng-click doesn't
- ng-click can be used on any element where as ng-submit only can be applied to a form element.
I was wondering if anyone can add anything else to this list as I would like to know what the norm is in a angular project.