1.0.0-beta.1 • Published 4 years ago

select-area v1.0.0-beta.1

Weekly downloads
10
License
-
Repository
-
Last release
4 years ago

ScrollToInvalid

@Directive({
  selector: '[tadScrollToInvalid]'
})
export class ScrollToInvalidDirective

Directive applied to form. If form is invalid at the moment of submit directive scrolls to the first ivalid form's element.

Usage example

Component:

export class MyDeactivateComponent extends ComponentCanDeactivate {
    public canDeactivate(): boolean {
        // internal logic
        return true;
      }