I am getting the following error when trying to run a prod build using the following
ionic cordova build browser --prod
Getting lot
Working form with my ionic 3 App:
import {FormBuilder, FormGroup, Validators } from '@angular/forms';
@IonicPage()
@Component({
selector: 'page-mobile-login',
templateUrl: 'mobile-login.html',
})
export class MobileLoginPage {
public loginForm:FormGroup;
constructor(public navCtrl: NavController,
public navParams: NavParams,
public formBuilder: FormBuilder)
{
this.loginForm = formBuilder.group({
mobile: ['', Validators.compose([Validators.required,Validators.pattern('[0-9 ]*'),
Validators.maxLength(10),Validators.minLength(10)])]
});
}
}
Seems issue you are using another function setForm()
in constructor.
mobile-login.html