Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialqing tian
16,303 Pointsfunction parameter type
in the entry-comment-form.component.ts. We have an @Output function for eventEmitter, named "onCommentAdded". In the video, it has a parameter {name: string; comment: string}. Meantime, we have a "onSubmit" function to trigger the event with a local variable "comment" which has a structure {name: this.name, comment: this.comment}. I wonder why the one uses " ; " to separate two properties of an object, and the other uses " , ".
Thank you very much for your look.