Update innerhtml of element using viewchild in angular 2

Viewed 5338

I have html element like

<section class="" #hiddenElement>
    <span>title</span>
    <span class="value"></span>
</section>

I access the element in component using

@ViewChild('hiddenElement') hiddenElement: ElementRef;

How do i update the innerhtml of element whose class is value?

1 Answers
Related