Skip to content

Instantly share code, notes, and snippets.

@debugmodedotnet
Created January 2, 2018 07:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save debugmodedotnet/1adae5a6cb83e11c815e9402d69dbe3d to your computer and use it in GitHub Desktop.
Save debugmodedotnet/1adae5a6cb83e11c815e9402d69dbe3d to your computer and use it in GitHub Desktop.
import { Component, Input, EventEmitter, Output } from '@angular/core';
@Component({
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