Skip to content

Instantly share code, notes, and snippets.

@nicolasleal570
Last active October 23, 2020 15:54
Show Gist options
  • Save nicolasleal570/ac5d6594a4d0453bdc9c87a722557ff5 to your computer and use it in GitHub Desktop.
Save nicolasleal570/ac5d6594a4d0453bdc9c87a722557ff5 to your computer and use it in GitHub Desktop.
@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