I am using Angular 2 and I would like to write something like this
*ngIf="game.Championship == 'Coupe d'Alsace'"
However, I get an error due to a single quote between d and A. Is it possible to somehow escape this character?
Usually \\
\\
*ngIf="game.Championship == 'Coupe d\'Alsace'"
or
*ngIf="game.Championship == 'Coupe d\\'Alsace'"
depending on where you placed it.
Source: https://habr.com/ru/post/1257838/More articles:Oracle change index to index with null values - sqlDynamically changing a Laravel application session - phpconvert selected option to boolean value - angularNgFor Loop Break in Angualr2 - angularNot all MBeans are available in Confluence - confluencewebpack-dev-server sets the wrong path for root localhost: 8080 - reactjsSelected HIVE (*) non null counter returns a higher value than select count (*) - hiveLink rel = "canonical": If different versions of the user manual use the same canonical url? - htmlElasticsearch Parent / Child. How to query and filter on the parent and sort by child field - sortingZero Downtime Deployment for Micro Service Architecture - javaAll Articles