Joined November 2014
·
Posted to
AngularJS: How to prevent form submission after click on button?
over 1 year
ago
Hello. There is another way to do that i think is the right way. Is just add the attribute "type=button" to the <button> element. If the type is not explicit defined, the button will act just like a "type=submit" (the one that submit the form).
Source from W3C: http://www.w3.org/TR/html-markup/button.html
@muszynskis Good ;)