How to use @ngx-validate/core - 10 common examples

To help you get started, we’ve selected a few @ngx-validate/core 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 abpframework / abp / npm / ng-packs / dist / theme-shared / esm2015 / lib / components / loader-bar / loader-bar.component.js View on Github external
ngOnInit() {
        this.actions
            .pipe(ofActionSuccessful(StartLoader, StopLoader), filter(this.filter), takeUntilDestroy(this))
            .subscribe((/**
         * @param {?} action
         * @return {?}
         */
        action => {
            if (action instanceof StartLoader)
                this.startLoading();
            else
                this.stopLoading();
        }));
        this.router.events
            .pipe(filter((/**
         * @param {?} event
         * @return {?}
         */
        event => event instanceof NavigationStart || event instanceof NavigationEnd || event instanceof NavigationError)), takeUntilDestroy(this))
github abpframework / abp / npm / ng-packs / dist / core / esm5 / lib / directives / debounce.directive.js View on Github external
function () {
        var _this = this;
        fromEvent(this.el.nativeElement, 'input')
            .pipe(debounceTime(this.debounce), takeUntilDestroy(this))
            .subscribe((/**
         * @param {?} event
         * @return {?}
         */
        function (event) {
            _this.debounceEvent.emit(event);
        }));
    };
    /**
github abpframework / abp / npm / ng-packs / packages / core / src / lib / directives / debounce.directive.ts View on Github external
ngOnInit(): void {
    fromEvent(this.el.nativeElement, 'input')
      .pipe(
        debounceTime(this.debounce),
        takeUntilDestroy(this)
      )
      .subscribe((event: Event) => {
        this.debounceEvent.emit(event);
      });
  }
}
github abpframework / abp / npm / ng-packs / dist / core / fesm5 / abp-ng.core.js View on Github external
function () {
        var _this = this;
        fromEvent(this.el.nativeElement, 'input')
            .pipe(debounceTime(this.debounce), takeUntilDestroy$1(this))
            .subscribe((/**
         * @param {?} event
         * @return {?}
         */
        function (event) {
            _this.debounceEvent.emit(event);
        }));
    };
    InputEventDebounceDirective.decorators = [
github abpframework / abp / npm / ng-packs / dist / core / fesm5 / abp-ng.core.js View on Github external
function () {
        var _this = this;
        fromEvent(this.el.nativeElement, 'click')
            .pipe(takeUntilDestroy$1(this))
            .subscribe((/**
         * @param {?} event
         * @return {?}
         */
        function (event) {
            event.stopPropagation();
            _this.stopPropEvent.emit(event);
        }));
    };
    ClickEventStopPropagationDirective.decorators = [
github abpframework / abp / npm / ng-packs / packages / account / src / lib / components / change-password / change-password.component.ts View on Github external
ngOnInit(): void {
    this.form = this.fb.group(
      {
        password: ['', required],
        newPassword: ['', required],
        repeatNewPassword: ['', required],
      },
      {
        validators: [comparePasswords(PASSWORD_FIELDS)],
      },
    );
  }
github abpframework / abp / npm / ng-packs / dist / theme-shared / esm2015 / lib / components / change-password / change-password.component.js View on Github external
ngOnInit() {
        this.form = this.fb.group({
            password: ['', required],
            newPassword: ['', required],
            repeatNewPassword: ['', required],
        }, {
            validators: [comparePasswords(['newPassword', 'repeatNewPassword'])],
        });
    }
    /**
github abpframework / abp / npm / ng-packs / dist / theme-shared / esm2015 / lib / components / change-password / change-password.component.js View on Github external
ngOnInit() {
        this.form = this.fb.group({
            password: ['', required],
            newPassword: ['', required],
            repeatNewPassword: ['', required],
        }, {
            validators: [comparePasswords(PASSWORD_FIELDS)],
        });
    }
    /**
github abpframework / abp / npm / ng-packs / dist / theme-shared / esm5 / lib / components / loader-bar / loader-bar.component.js View on Github external
function () {
        var _this = this;
        this.actions
            .pipe(ofActionSuccessful(StartLoader, StopLoader), filter(this.filter), takeUntilDestroy(this))
            .subscribe((/**
         * @param {?} action
         * @return {?}
         */
        function (action) {
            if (action instanceof StartLoader)
                _this.startLoading();
            else
                _this.stopLoading();
        }));
        this.router.events
            .pipe(filter((/**
         * @param {?} event
         * @return {?}
         */
        function (event) {
github abpframework / abp / npm / ng-packs / packages / theme-shared / src / lib / components / loader-bar / loader-bar.component.ts View on Github external
ofActionSuccessful(StartLoader, StopLoader),
        filter(this.filter),
        takeUntilDestroy(this),
      )
      .subscribe(action => {
        if (action instanceof StartLoader) this.startLoading();
        else this.stopLoading();
      });

    this.router.events
      .pipe(
        filter(
          event =>
            event instanceof NavigationStart || event instanceof NavigationEnd || event instanceof NavigationError,
        ),
        takeUntilDestroy(this),
      )
      .subscribe(event => {
        if (event instanceof NavigationStart) this.startLoading();
        else this.stopLoading();
      });
  }

@ngx-validate/core

<p align="center"> <img src="https://github.com/ng-turkey/ngx-validate/workflows/Lint%20&%20Test%20&%20Build/badge.svg"/> <a href="https://codeclimate.com/github/ng-turkey/ngx-validate/maintainability"><img src="https://api.codeclimate.com/v1/badges/1

MIT
Latest version published 2 years ago

Package Health Score

57 / 100
Full package analysis

Similar packages