I am using angular 5 and the angular-tree-component https://github.com/500tech/angular-tree-component. I would like to style one node different from the others
import { Component, ViewChild} from '@angular/core';
import { TreeComponent } from 'angular-tree-component';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
})
export class AppComponent {
@ViewChild('myTree')
private tree: TreeComponent;
nodes = [
{
id: 1,
name: 'root1',
children: [
{ id: 2, name: '<b>child1</b>' },
{ id: 3, name: 'child2' }
]
}
];
}
So the Problem is, that the b tags are sanitized by angular to \lt b \gt \lt b \gt.
How can I pragmatically generate HTML in angular?