read more and read less using angularjs code example
Example 1: how to implement read more and readless in angular
<div [ngClass]="{'show-less': showShortDesciption}">
<!-- Your Text Here -->
</div
Example 2: how to implement read more and readless in angular
<button type="button" (click)="alterDescriptionText()">
{ showShortDesciption ? 'SHOW ALL': 'SHOW LESS' }}
</button>