I have a big paragraph coming from API request. Such as below screenshot.
Those tags appear as it is. It doesn't transform into real HTML tags.
In Angular I am just using a simple code.
minister.component.html
<cdk-virtual-scroll-viewport itemSize="580" style="height:500px">
<div *cdkVirtualFor="let data of allData">
<a href="#{{data.Url_Page_Name}}">{{data.Minister_Name_English}}</a>
<div>{{data.Ministry_Article}}</div>
</div>
</cdk-virtual-scroll-viewport>
In browser I get same html tags in string format. How can I change that html tags string into html tags.
minister.component.ts
import { Component, OnInit } from '@angular/core';
import { ApiReadService } from "../apiReadService.service";
@Component({
selector: 'app-ministers',
templateUrl: './ministers.component.html',
styleUrls: ['./ministers.component.scss']
})
export class MinistersComponent implements OnInit {
allData:Object = [];
constructor(private apiRead: ApiReadService) {
}
ngOnInit(){
this.apiRead.getData().subscribe(data=>{
this.allData = data.allMinisters;
});
}
}