Created
September 3, 2021 18:19
-
-
Save NyaGarcia/954bfda70aec1122bcde2f78b8b8413e to your computer and use it in GitHub Desktop.
Defining an array of todos in the todo-list component
This file contains hidden or 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
import { Component, OnInit } from '@angular/core'; | |
@Component({ | |
selector: 'app-todo-list', | |
templateUrl: './todo-list.component.html', | |
styleUrls: ['./todo-list.component.css'], | |
}) | |
export class TodoListComponent implements OnInit { | |
constructor() {} | |
ngOnInit(): void {} | |
todos = [ | |
'Refactor code', | |
'Eat pizza', | |
'Fix bugs', | |
'Update kernel', | |
'Eat more pizza', | |
'Fix more bugs', | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment