how to test on submit angular code example
Example: anguler test submit form
fixture.debugElement
.query(By.css('form'))
.triggerEventHandler('ngSubmit', null);
fixture.debugElement
.query(By.css('form'))
.triggerEventHandler('ngSubmit', null);