Skip to content

Instantly share code, notes, and snippets.

@theely
Last active September 13, 2017 19:24
Show Gist options
  • Save theely/c2d5363ca31379adbd4c735efc92fa20 to your computer and use it in GitHub Desktop.
Save theely/c2d5363ca31379adbd4c735efc92fa20 to your computer and use it in GitHub Desktop.
sticky-html
.header{
position: fixed;
top: 0px;
width: inherit;
z-index: 2;
background: #252830;
}
<div class="header" *ngIf="currentSectionName!=null">
<h2 >{{currentSectionName}}</h2>
</div>
<ul>
<li *ngFor="let section of sections">
<section [content]="section" (sectionPosition)="sectionPosition($event)"></section>
</li>
</ul>
<h2>
{{content.name}}
</h2>
<hr class="aky">
<div>
<!-- The section content here -->
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment