Skip to content

Instantly share code, notes, and snippets.

@NishuGoel
Created January 15, 2019 13:12
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 NishuGoel/e6bcf39205dd4c7bbfea2ea272ef73b5 to your computer and use it in GitHub Desktop.
Save NishuGoel/e6bcf39205dd4c7bbfea2ea272ef73b5 to your computer and use it in GitHub Desktop.
import { Component, EventEmitter, Output } from '@angular/core';
export class ChildComponent{
@Output() change = new EventEmitter();
i=5;
changeCSS(){
this.change.emit(this.i);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment