Answers for "how to implement read more and readless in angular"

0

how to implement read more and readless in angular

.show-less {
    height: 4rem;
    overflow: hidden;
    padding: 1rem;
}
Posted by: Guest on May-06-2020
0

how to implement read more and readless in angular

showShortDesciption = true

 alterDescriptionText() {
    this.showShortDesciption = !this.showShortDesciption
 }
Posted by: Guest on May-06-2020
0

how to implement read more and readless in angular

<button type="button" (click)="alterDescriptionText()">
   { showShortDesciption ? 'SHOW ALL': 'SHOW LESS' }}
 </button>
Posted by: Guest on May-06-2020
0

how to implement read more and readless in angular

<div [ngClass]="{'show-less': showShortDesciption}">
      <!-- Your Text Here -->
</div
Posted by: Guest on May-06-2020

Code answers related to "how to implement read more and readless in angular"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language