1.0.0-beta.0 • Published 4 years ago

scroll-to-invalid v1.0.0-beta.0

Weekly downloads
5
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;
      }