select-area
v1.0.0-beta.1
Published
```` @Directive({ selector: '[tadScrollToInvalid]' }) export class ScrollToInvalidDirective ````
Downloads
42
Readme
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;
}