When i hit the button which is not defined as submit, submit(formAccessor) button works. I am curious about this behaviour because i did not define it as submit button. In fact when i add another button in the form, it also submits. How can i put a button into the form and give it another behaviour ? thaks
<form #formAccessor="ngForm" on-ngSubmit="submit(formAccessor)">
<div class="form-group">
<label for="id">ID </label>
<input ngModel name="id" id="id" #idAccessor="ngModel" type="text" class="form-control">
</div>
<div class="form-group">
<label for="dataModelVersion">Data Model Version </label>
<input id="dataModelVersion" type="text" class="form-control">
</div>
<div class="form-group">
<label for="orderId">orderId </label>
<input id="orderId" type="text" class="form-control">
</div>
<button class="btn btn-primary pull-right">Submit</button>
</form>