Skip to content

Instantly share code, notes, and snippets.

@Kalpesh300
Last active March 9, 2020 05:30
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 Kalpesh300/7e02a9bd8e210a92f71d62cc406aabbd to your computer and use it in GitHub Desktop.
Save Kalpesh300/7e02a9bd8e210a92f71d62cc406aabbd to your computer and use it in GitHub Desktop.
Demo Component
import { Component, OnInit, Input } from '@angular/core';
import { Subject } from 'rxjs';
@Component({
selector: 'app-demo',
templateUrl: './demo.component.html',
styleUrls: ['./demo.component.scss']
})
export class Demo implements OnInit {
statusUpdate = new Subject<boolean>();
categoryUpdate: Subject<string>;
userUpdate: Subject<number>;
constructor() {
this.categoryUpdate = new Subject<string>();
}
ngOnInit() {
this.userUpdate = new Subject<number>();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment