I have a json object that I want to display on my html page:
this.pattern = [
{pattern: /AA/g, backgroundColor: '#D72638'}
];
To do so I use json pipe like so:
<pre>{{pattern | json}}</pre>
The object is displayed on the html page correctly, but the regex does not. What can I do to be able to show it?