Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
ngOnInit(): void {
this.form = this.fb.group({
username: [null, [Validators.required]],
realname: [null, [Validators.required]],
mobile: [null, Validators.compose([Validators.required, _Validators.mobile])],
profile: [null, [Validators.required]],
avatar: [null, [Validators.required]],
status: [1, [Validators.min(1), Validators.max(2)]],
});
}