title: Angular: Template parse errors: Parser Error: Unexpected token = at column
body: <p>I am writing an Angular app, built with Angular CLI.
  The new template parser reports the following unexpected token errors.</p>
  
  <p>Angular throws error like</p>
  
  <pre><code>**ERROR in Template parse errors**:
  Parser Error: Unexpected token ) at column 158 in [
              onSubmit(
                  firstName.value,
                  lastName.value,
                  name.value,
                  email.value,
              )
  </code></pre>
  
  <p>when processing the</p>
  
  <pre><code>&lt;div *ngIf="user$ | async as user; else loginArea"&gt;
      &lt;p *ngIf="user.emailVerified"&gt;xxxxxx&lt;/p&gt;
      &lt;p *ngIf="!user.emailVerified"&gt;yyyyy&lt;/p&gt;
      &lt;button (click)="logout()"&gt;logout&lt;/button&gt;
  &lt;/div&gt;
  
  &lt;ng-template #loginArea&gt;
      &lt;mat-card class="sign-up-card"&gt;
          &lt;mat-card-header&gt;
              &lt;mat-card-title class="sign-up-title"&gt;zzz&lt;/mat-card-title&gt;
          &lt;/mat-card-header&gt;
  
          &lt;mat-card-content&gt;
              &lt;form #form="ngForm" (submit)="
              onSubmit(
                  firstName.value,
                  lastName.value,
                  name.value,
                  email.value,
              )
            "&gt;
                  &lt;mat-form-field fxFill appearance="outline"&gt;
                      &lt;mat-label&gt;first name&lt;/mat-label&gt;
                      &lt;input #firstName matInput required ngModel name="firstName" /&gt;
                  &lt;/mat-form-field&gt;
                  &lt;mat-form-field fxFill appearance="outline"&gt;
                      &lt;mat-label&gt;last name&lt;/mat-label&gt;
                      &lt;input #lastName matInput required ngModel name="lastName" /&gt;
                  &lt;/mat-form-field&gt;
                  &lt;mat-form-field fxFill appearance="outline"&gt;
                      &lt;mat-label&gt;email&lt;/mat-label&gt;
                      &lt;input #email matInput required type="email" pattern=".+@.+\..+" ngModel name="email" /&gt;
                  &lt;/mat-form-field&gt;
                  &lt;mat-form-field fxFill appearance="outline"&gt;
                      &lt;mat-label&gt;password&lt;/mat-label&gt;
                      &lt;input #password matInput required type="password" ngModel name="password" /&gt;
                  &lt;/mat-form-field&gt;
                  &lt;div fxLayout="row"&gt;
                      &lt;div&gt;
                          &lt;mat-checkbox fxFill required ngModel name="agree"&gt;
                              aaaa
                          &lt;/mat-checkbox&gt;
                      &lt;/div&gt;
                      &lt;span fxFlex="1 1 auto"&gt;&lt;/span&gt;
                      &lt;a routerLink="/terms"&gt;
                          bbbb
                      &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;button mat-raised-button fxFill [color]="'accent'" [disabled]="form.invalid"&gt;
                      sign up
                  &lt;/button&gt;
              &lt;/form&gt;
              &lt;button type="button" (click)="resetPassword()" [disabled]="form.get('email').invalid"&gt;
                  reset password
              &lt;/button&gt;
          &lt;/mat-card-content&gt;
      &lt;/mat-card&gt;
  &lt;/ng-template&gt;
  </code></pre>
  
  <p>I'm not aware that there has been any change in syntax, so I'm assuming that this is an error in the TemplateGenerator.</p>