As I follow along with a tutorial, I've come across the use of EventEmitter
. The code snippet provided in the tutorial is as follows:
@Output() ratingClicked: EventEmitter<string> =
new EventEmitter<string>();
However, my Visual Studio Code is flagging these errors:
- The error "Type 'EventEmitter' is not generic."
- "Expected 0 type arguments, but got 1."
Even after checking the Angular website, it seems that the code should be correct.
My current setup includes Angular CLI: 1.7.4; Node: 8.11.1; Typescript: 2.8.1.