diff --git a/src/accounts/accountForm.component.ts b/src/accounts/accountForm.component.ts index f3ca212..3f71f6e 100644 --- a/src/accounts/accountForm.component.ts +++ b/src/accounts/accountForm.component.ts @@ -10,8 +10,8 @@ import { Account } from './account'; selector: 'account-form', exportAs: 'accountForm', template: ` -
+
@@ -74,7 +74,9 @@ export class AccountFormComponent implements OnInit { } submit() { - this.submitEventEmitter.emit(); + if(this.form.valid) { + this.submitEventEmitter.emit(); + } } get name() {