-
Notifications
You must be signed in to change notification settings - Fork 33
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
[DO NOT MERGE YET] fix(lib): access class props from get form controls #113
Conversation
BREAKING CHANGE: If you have components that are extending one of the classes of ngx-sub-form AND that have an `ngOnInit` hook, they should call `super.ngOnInit()` This closes #82
Also, I'm considering creating a |
Just found an annoying case where I'm defining an observable based on |
Discussed with @zakhenry and #86 might help as if we've got a behavior subject exposing the form group (as soon as the form is available) it wouldn't be an issue and we could simply use that obs instead |
This is fixed in #176 in a much better way. Closing this one as we're not going to merge it 👍 |
@zakhenry this PR contains a breaking change.
Even though it's technically written in the README that ngx-sub-form uses
ngOnInit
hook and therefore it's the consumer responsibility to callsuper.ngOnInit()
, I don't think it'd be fair to publish that as a non breaking change because people were simply not able to callsuper.ngOnInit()
onNgxSubFormComponent
norNgxSubFormRemapComponent
so far.For the context, please have a look on #82 where I've added some details.