scroll-to-invalid
v1.0.0-beta.0
Published
```` @Directive({ selector: '[tadScrollToInvalid]' }) export class ScrollToInvalidDirective ````
Readme
ScrollToInvalid
@Directive({
selector: '[tadScrollToInvalid]'
})
export class ScrollToInvalidDirectiveDirective 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;
}