Typescript error Property does not exist on type
I am new to angularjs 2 and ionic 2. I am working with angularjs form with Validators, FormControl and FormGroup. Everything is good when I execute the project using ionic serve --lab. but when I build that project it gives error: Property 'username' does not exist on type. login.ts import { Component } from '@angular/core'; import { LoadingController, NavController } from 'ionic-angular'; import { AuthService } from '../../service/authService'; import {Validators, FormBuilder, FormGroup, FormControl } from '@angular/forms'; @Component({ selector: 'page-login', templateUrl: 'login.html' })