Skip to content

Instantly share code, notes, and snippets.

View natkalia's full-sized avatar
🏠
Working from home

Natalia Banasiewicz natkalia

🏠
Working from home
View GitHub Profile
@natkalia
natkalia / 01-home.ts
Created September 13, 2019 09:45 — forked from jhades/01-home.ts
Angular 2 Smart Components vs Presentation Components: What's the Difference, When to Use Each and Why?
@Component({
selector: 'app-home',
template: `
<h2>All Lessons</h2>
<h4>Total Lessons: {{lessons?.length}}</h4>
<div class="lessons-list-container v-h-center-block-parent">
<table class="table lessons-list card card-strong">
<tbody>
<tr *ngFor="let lesson of lessons" (click)="selectLesson(lesson)">