Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import { Component, Input, EventEmitter, Output } from '@angular/core';
selector: 'app-child',
template: `<button class='btn btn-primary' (click)="handleclick()">Click me</button> `
export class AppChildComponent {
handleclick() {
console.log('hey I am clicked in child');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment