I want to change the text of a html element.
profile.component.html
<div class="col col-sm-12">
<h2>FirstName LastName</h2>
</div>
profile.component.ts
changeName():void{
//Code to change the <h2> element
}
If you could provide code example how to do this, it would be good!.