I'm currently following a tutorial and the tutorial is making use of EventEmitter. The code goes like this
@Output() ratingClicked: EventEmitter<string> =
new EventEmitter<string>();
But it visual studio code gives me these errors:
- Type 'EventEmitter' is not generic.
- Expected 0 type arguments, but got 1.
Even in the angular website it looks like that code is correct.
I'm currently using Angular CLI: 1.7.4; Node: 8.11.1; Typescript: 2.8.1