This is the code in my appComponent.ts:
var res = this.http.get('/assets/panels.json');
res.subscribe(res => this.panels = res.json());
Below is the json file:
[{
"title": "panel1",
"content": "<mat-tab-group><mat-tab label="Tab 1">Content 1</mat-tab><mat-tab label="Tab 2">Content 2</mat-tab<</mat-tab-group>"
},
{
"title": "panel2",
"content": "content2"
}]
But in the browser, whatever content I have sent in tags are displayed as it is. Its not compiling it as html
for example <h1>HI</h1>
should be shown as HI
in browser.
Same has to be done for data in mat-tab-group, please help on this.