-
Notifications
You must be signed in to change notification settings - Fork 23
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
feat(stark-demo): add the ngx form error to the showcase #1361
Conversation
...active-forms-with-ngx-form-errors/demo-reactive-forms-with-ngx-form-errors-page.component.ts
Outdated
Show resolved
Hide resolved
...c/assets/examples/reactive-forms-with-ngx-form-errors/reactive-forms-with-ngx-form-errors.ts
Outdated
Show resolved
Hide resolved
...tive-forms-with-ngx-form-errors/demo-reactive-forms-with-ngx-form-errors-page.component.scss
Outdated
Show resolved
Hide resolved
...tive-forms-with-ngx-form-errors/demo-reactive-forms-with-ngx-form-errors-page.component.scss
Outdated
Show resolved
Hide resolved
...tive-forms-with-ngx-form-errors/demo-reactive-forms-with-ngx-form-errors-page.component.scss
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some remarks :p
...active-forms-with-ngx-form-errors/demo-reactive-forms-with-ngx-form-errors-page.component.ts
Outdated
Show resolved
Hide resolved
...assets/examples/reactive-forms-with-ngx-form-errors/reactive-forms-with-ngx-form-errors.html
Outdated
Show resolved
Hide resolved
...assets/examples/reactive-forms-with-ngx-form-errors/reactive-forms-with-ngx-form-errors.html
Outdated
Show resolved
Hide resolved
...assets/examples/reactive-forms-with-ngx-form-errors/reactive-forms-with-ngx-form-errors.html
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some remarks, and also, the example now contains only half of the implementation, we need to also show the configuration needed for the NgxFormErrorsModule
and the entryComponents
. I suggest to add another section in the page explaining that, something like we did in https://stark.nbb.be/showcase/latest/demo-rbac/authorization-service
Don't forget to rebase your branch and squash your commits 😉
Sorry for the delay... I almost forget about this PR :p
...assets/examples/reactive-forms-with-ngx-form-errors/reactive-forms-with-ngx-form-errors.scss
Outdated
Show resolved
Hide resolved
showcase/src/app/welcome/pages/reactive-form-errors/components/card/card.component.ts
Outdated
Show resolved
Hide resolved
...ase/src/app/welcome/pages/reactive-form-errors/demo-reactive-form-errors-page.component.html
Outdated
Show resolved
Hide resolved
...assets/examples/reactive-forms-with-ngx-form-errors/reactive-forms-with-ngx-form-errors.html
Outdated
Show resolved
Hide resolved
...assets/examples/reactive-forms-with-ngx-form-errors/reactive-forms-with-ngx-form-errors.html
Outdated
Show resolved
Hide resolved
...assets/examples/reactive-forms-with-ngx-form-errors/reactive-forms-with-ngx-form-errors.html
Outdated
Show resolved
Hide resolved
...assets/examples/reactive-forms-with-ngx-form-errors/reactive-forms-with-ngx-form-errors.html
Outdated
Show resolved
Hide resolved
...ase/src/app/welcome/pages/reactive-form-errors/demo-reactive-form-errors-page.component.html
Show resolved
Hide resolved
@nicanac thinking a bit more on this, in fact it is not necessary to add the other section to show the configuration needed for the That way it is safer as we don't need to duplicate documentation... |
@christophercr , I do agree, it's the reason why I didn't include it at first. |
cff4490
to
881ffb0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still some translations to be replaced in the example files. And also, the name of the example files is wrong, it should be reactive-form-errors.xxx
(currently it has an extra s
in forms
) so the exmple files cannot be found:
GET http://localhost:3000/assets/examples/reactive-form-errors/reactive-form-errors.html 404 (Not Found)
GET http://localhost:3000/assets/examples/reactive-form-errors/reactive-form-errors.scss 404 (Not Found)
GET http://localhost:3000/assets/examples/reactive-form-errors/reactive-form-errors.ts 404 (Not Found)
Nice thank you, Haven't seen it. It's solved.
showcase/src/assets/examples/reactive-forms-errors/reactive-forms-errors.html
Outdated
Show resolved
Hide resolved
showcase/src/assets/examples/reactive-forms-errors/reactive-forms-errors.html
Outdated
Show resolved
Hide resolved
showcase/src/assets/examples/reactive-forms-errors/reactive-forms-errors.html
Outdated
Show resolved
Hide resolved
showcase/src/assets/examples/reactive-forms-errors/reactive-forms-errors.html
Outdated
Show resolved
Hide resolved
...ase/src/app/welcome/pages/reactive-form-errors/demo-reactive-form-errors-page.component.html
Show resolved
Hide resolved
033df4e
to
7a64264
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some comments
showcase/src/app/welcome/pages/reactive-form-errors/demo-reactive-form-errors-page.component.ts
Outdated
Show resolved
Hide resolved
showcase/src/app/welcome/pages/reactive-form-errors/demo-reactive-form-errors-page.component.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one small remark.... almost there! 😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
button { | ||
margin: 8px; | ||
} | ||
.grid { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
grid won't work in IE, maybe you could use flexbox instead
showcase/src/app/welcome/pages/reactive-form-errors/parent-error-state-matcher.ts
Show resolved
Hide resolved
showcase/src/app/welcome/pages/reactive-form-errors/password-validator.ts
Show resolved
Hide resolved
public ngOnInit(): void { | ||
this.formGroup = this.formBuilder.group({ | ||
username: [undefined, Validators.required], | ||
matchingPasswords: new FormGroup( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you use the formbuilder for the group and form controls?
showcase/src/app/welcome/pages/reactive-form-errors/demo-reactive-form-errors-page.component.ts
Show resolved
Hide resolved
showcase/src/app/welcome/pages/reactive-form-errors/password-validator.ts
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, don't forget to update the example when you make changes. 😄
Superseded by #1721. |
ISSUES CLOSED: #1195
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
Add the ngx form error to the showcase
What is the current behavior?
Issue Number:#1195
What is the new behavior?
Does this PR introduce a breaking change?
Other information