Advertisement
Guest User

Untitled

a guest
May 20th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. import { Component, ViewEncapsulation } from '@angular/core';
  2. import template from './task-list.html!text';
  3.  
  4. @Component({
  5. selector: 'ngc-task-list',
  6. host: {class: 'task-list'},
  7. template,
  8. encapsulation: ViewEncapsulation.None
  9. })
  10.  
  11. export class TaskList {
  12. constructor() {
  13. this.tasks = [
  14. {title: 'Zadanie 1', done: false},
  15. {title: 'Zadanie 2', done: true},
  16. ];
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement