Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keys/modelToView/viewToModel/TypedArray arguments #50

Merged
merged 7 commits into from
May 29, 2021
Merged

Conversation

gparlakov
Copy link
Owner

feat(form group): add keys

  • keys will hold the keys of the group in a type-safe manner for access example:
    • <input [formControlName]=form.keys.email" />
  • add examples in the readme

feat(form event option): modelToView and viceversa

  • add the model to view and view to model
export interface FormEventOptions {
    //...
    emitModelToViewChange?: boolean;
    emitViewToModelChange?: boolean;
}
  • add some more type 'tests'

chore(semantic): use branch rc/

chore(semantic): add rc/** to semantic release config

chore(docs): add vscode color

fix(typed array): order type arguments …

closes #47

  • now typedFormArray<string>
  • was typedFormArray<string[], string>
    for the same thing
    • in the "was" case it the second argument was skipped it was inferred as any
  • add a TEST step - build the example project which uses the full spectrum of functionality
  • add 2 FormArray examples - string one and object one (PersonContact)

- add the  model to view and view to model
```ts
export interface FormEventOptions {
    //...
    emitModelToViewChange?: boolean;
    emitViewToModelChange?: boolean;
}
```
- add some more type 'tests'
closes #47
- now `typedFormArray<string>`
- was  `typedFormArray<string[], string>`
for the same thing
  - in the "was" case it the second argument was skipped it was inferred as `any`
 - add a TEST step - build the example project which uses the full spectrum of functionality
 - add 2 FormArray examples - string one and object one (PersonContact)
- keys will hold the keyos of the group in a type safe manner for access example:
- `<input [formControlName]=form.keys.email" />`
- add examples in the readme
@gparlakov gparlakov closed this May 29, 2021
@gparlakov gparlakov reopened this May 29, 2021
@gparlakov gparlakov merged commit 4645dc3 into master May 29, 2021
@gparlakov gparlakov deleted the rc/1.0.9 branch May 29, 2021 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Order the TypedArray types
1 participant