-
Notifications
You must be signed in to change notification settings - Fork 357
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
Polymorphic classes #895
base: master
Are you sure you want to change the base?
Polymorphic classes #895
Conversation
- remove private accessors - use Injector in constructor - split code into smaller functions - fill docs
|
||
/** | ||
* @name onBlur | ||
*/ | ||
@Output() public onBlur: EventEmitter<any> = new EventEmitter(); | ||
@Output() public onBlur: EventEmitter<FocusEvent> = new EventEmitter(); |
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.
I may have not used these in order to avoid errors with angular universal 🤔 @DanielKucal thoughts?
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.
I think things like those should be polyfilled in the server environment rather than in every project separately, e.g. like here: https://github.com/Angular-RU/angular-universal-starter/blob/master/server.ts#L11
We can eventually add quick polyfills like in tag-input.ts:
const DragEvent = (window as any).DragEvent;
@Gbuomprisco, what do you think?
This goal of this change is to allow developers to easily extend the functionality of
ngx-chips
classes. To achieve it introduces the following things:Injector
to the constructor, instead of standalone dependenciesonTab()
to handle keys events directly