Struggling with dom manipulation in an angular/node.js environment using typescript for my visualcomponent.html
The second inline styling works fine, showing the h1 in blue color. However, I run into issues when trying to embed strings within the innerHTML as shown below: inside my visual.component.ts:
htmlVariable:string = "<h1 style = 'color:blue; margin-left:30px;'> not working</h1>"
constructor(private _httpService: HttpService, private _route: ActivatedRoute,
private _router: Router) { }
Is there another method to manipulate the CSS? I haven't found a way to do it through vision.component.css like I can through inner HTML in the .html file. Thank you for your assistance.