Skip to content

Instantly share code, notes, and snippets.

@Seanmclem
Last active July 15, 2018 23:12
Show Gist options
  • Save Seanmclem/1dca37aebd0dd2524d8a1f9837154e08 to your computer and use it in GitHub Desktop.
Save Seanmclem/1dca37aebd0dd2524d8a1f9837154e08 to your computer and use it in GitHub Desktop.
<!-- blog-detail.component.html -->
<link *ngIf="cssUrl" rel="stylesheet" type="text/css" [href]="sanitizer.bypassSecurityTrustResourceUrl(cssUrl)">
<div class="blog-detail" *ngIf="blogPost">
<h3>{{blogPost.name}}</h3>
<!-- example post body with gist-scripts -->
<div class="post-body">
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, 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 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.
</p>
<p>
<script src="https://gist.github.com/Seankps/1dca37aebd0dd2524d8a1f9837154e08.js"></script>
<!-- output would automatically append here at the end of the paragraph tag containing the script -->
</p>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, 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 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.
</p>
<p>
<script src="https://gist.github.com/Seankps/1dca37aebd0dd2524d8a1f9837154e08.js"></script>
<!-- output would automatically append here at the end of the paragraph tag containing the script -->
</p>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment