I'm using Angular 2 and I would like to write something like this
*ngIf="game.Championship == 'Coupe d'Alsace'"
However I get an error because of the single quote between d and A. Is is possible to somehow escape this character?
Usually a \\
*ngIf="game.Championship == 'Coupe d\'Alsace'"
or
*ngIf="game.Championship == 'Coupe d\\'Alsace'"
depending on where you put it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With