how to implement read more and readless in angular
.show-less {
height: 4rem;
overflow: hidden;
padding: 1rem;
}
how to implement read more and readless in angular
.show-less {
height: 4rem;
overflow: hidden;
padding: 1rem;
}
how to implement read more and readless in angular
showShortDesciption = true
alterDescriptionText() {
this.showShortDesciption = !this.showShortDesciption
}
how to implement read more and readless in angular
<button type="button" (click)="alterDescriptionText()">
{ showShortDesciption ? 'SHOW ALL': 'SHOW LESS' }}
</button>
how to implement read more and readless in angular
<div [ngClass]="{'show-less': showShortDesciption}">
<!-- Your Text Here -->
</div
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us