Skip to content

Instantly share code, notes, and snippets.

@pietmichal
Last active January 8, 2017 21:02
Show Gist options
  • Select an option

  • Save pietmichal/37fac97bab15229e54e01dab17036960 to your computer and use it in GitHub Desktop.

Select an option

Save pietmichal/37fac97bab15229e54e01dab17036960 to your computer and use it in GitHub Desktop.
Medium tutorial part4
span {
float: left;
padding: 5px;
background-color: #D0CCD0;
border-radius: 5px 5px 0 0;
color: #828181;
font-size: 14px;
cursor: pointer;
}
.selected {
background-color: #FBFCFF;
color: #333;
}
div {
clear: both;
padding: 10px;
background: #FBFCFF;
min-height: 100px;
border-radius: 0 5px 5px 5px;
}
<span *ngFor="let tab of tabList">
{{tab.name}}
</span>
<div>
<template [ngTemplateOutlet]="currentTab.templateRef"></template>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment