Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { Component, ViewEncapsulation } from '@angular/core';
- import template from './task-list.html!text';
- @Component({
- selector: 'ngc-task-list',
- host: {class: 'task-list'},
- template,
- encapsulation: ViewEncapsulation.None
- })
- export class TaskList {
- constructor() {
- this.tasks = [
- {title: 'Zadanie 1', done: false},
- {title: 'Zadanie 2', done: true},
- ];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement