How to use the @delon/util._Validators.mobile function in @delon/util

To help you get started, we’ve selected a few @delon/util examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github songyaofeng / angular6-admin / src / app / routes / user / create / create.component.ts View on Github external
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)]],
        });
    }