You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.
Right now, there's a requirement to have two items in your constructor if you intend to use props in the @Setup directive:
@Setup((props,detectChanges)=>{// ...})
@Component({selector: 'test'})classTestComponentimplementsOnChanges{// These two items in your constructor are required, currentlyconstructor(privatecomponentFactoryResolver: ComponentFactoryResolver,privatecd: ChangeDetectorRef){}// This is required, even if emptyngOnChanges(){}}
These two items are confusing to new users, a bit janky of a requirement, can cause bugs when not present, and is generally just subideal for the usage of the library. I would love to figure out a way to remove these from the consuming component constructor
The text was updated successfully, but these errors were encountered:
Right now, there's a requirement to have two items in your constructor if you intend to use
props
in the@Setup
directive:These two items are confusing to new users, a bit janky of a requirement, can cause bugs when not present, and is generally just subideal for the usage of the library. I would love to figure out a way to remove these from the consuming component constructor
The text was updated successfully, but these errors were encountered: