Last active
March 9, 2020 05:30
-
-
Save Kalpesh300/7e02a9bd8e210a92f71d62cc406aabbd to your computer and use it in GitHub Desktop.
Demo Component
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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