Last active
October 23, 2020 15:54
-
-
Save nicolasleal570/ac5d6594a4d0453bdc9c87a722557ff5 to your computer and use it in GitHub Desktop.
This file contains 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
@Component({ | |
selector: 'app-todo-item', | |
templateUrl: './todo-item.component.html', | |
styleUrls: ['./todo-item.component.scss'] | |
}) | |
export class TodoItemComponent implements OnInit { | |
@Input() id: Number; | |
@Input() title: String; | |
@Input() description: String; | |
@Input() done: Boolean; | |
@Output() onClick = new EventEmitter<any>(); | |
constructor() { } | |
ngOnInit() { } | |
click(event) { | |
this.onClick.emit(this.id); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment