I want to have a typescript solution. There is a label with a lot of text and I want to show the first 40 characters. If the user clicks the "show more" button below the whole label should load and the "show more" label should change to "show less". After clicking "show less" it should reverse the function.
home.component.html
<label>
id="myLabel"
text="Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut l">
</label>
<label id="showMore" text="Show more"></label>