Last active
October 13, 2021 19:42
-
-
Save ssougnez/942c66a8db9fd56f77e8c68dfd2b2f77 to your computer and use it in GitHub Desktop.
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
@Component({ | |
selector: 'app-main', | |
template: `<div [innerHTML]="content"></div>`, | |
styles: ['.bold { font-weight: bold; }'], | |
}) | |
export class MainComponent { | |
public content: string = `<p class="bold">I'm the main component</p> | |
<p><a href="/hello">Hello</a></p> | |
<p><a href="https://angular-rxe6rp.stackblitz.io/bye">Bye</a></p> | |
<p><a href="https://www.medium.com">Medium</a></p>`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment