Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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: Subject<boolean>;
categoryUpdate: Subject<string>;
userUpdate: Subject<number>;
constructor() {
instantiation();
}
instantiation() {
this.statusUpdate = new Subject<boolean>();
this.categoryUpdate = new Subject<string>();
this.userUpdate = new Subject<number>();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.