Last active
March 16, 2020 14:41
-
-
Save armorpreston/2214daa4a27fb87aa97e3494944c2f39 to your computer and use it in GitHub Desktop.
Brandkit/Components/read-more
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component } from '@angular/core'; | |
@Component({ | |
templateUrl: './example.html' | |
}) | |
export class ReadMoreExampleComponent { | |
public content = `<b>Lorem ipsum dolor sit amet</b>, sed do eiusmod tempor incididunt ut labore et | |
dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute | |
<a href="#">consectetur adipiscing elit</a> irure dolor in reprehenderit in voluptate velit esse cillum dolore | |
eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.`; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<read-more [text]="content" [maxLength]="100"></read-more> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment