Last active
May 25, 2020 01:19
-
-
Save xiongemi/7a61e5e00e0f1c45d2e24fb70d66b655 to your computer and use it in GitHub Desktop.
interface file for form state in ngxs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { ValidationErrors } from '@angular/forms'; | |
| export interface FormState<T> { | |
| model: T; | |
| dirty: boolean; | |
| status: string; | |
| errors: ValidationErrors | null; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment