Last active
September 13, 2017 19:24
-
-
Save theely/c2d5363ca31379adbd4c735efc92fa20 to your computer and use it in GitHub Desktop.
sticky-html
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
.header{ | |
position: fixed; | |
top: 0px; | |
width: inherit; | |
z-index: 2; | |
background: #252830; | |
} |
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
<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> |
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
<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