1// html
2<form ngNoForm
3 [formGroup]="testGroup"
4 [action]='actionLink'
5 method='POST'
6 #testForm>
7 <input name='Email' type='hidden' [value]='currentUserEmail'>
8</form>
9// ts
10@ViewChild('testForm') testFormElement;
11public currentUserEmail: string = '';
12public testGroup = this.formBuilder.group({
13 Email: ''
14});
15public testMethod(): void
16{
17 this.testFormElement.nativeElement.submit();
18}