-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Answer:1 solution projection pre v16 #167
Conversation
}, | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
export class CardComponent<T> { |
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.
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.
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.
Nevermind found my issue, id is a number, so the types were not overlapping...
{{ name }} | ||
<button (click)="delete(id)"> | ||
<ng-content></ng-content> | ||
<button (click)="delete.next()"> |
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.
Hey, I have a question, why did you use delete.next() instead of delete.emit(), Ive researched this and nextCall() seems to be deprecated
Checklist for challenge submission