ПА
private shown = new Subject<boolean>()
public isShown() {
return this.shown.asObservable();
}
public show() {
this.shown.next(true);
}
hide() {
this.shown.next(false);
}
Size: a a a
ПА
private shown = new Subject<boolean>()
public isShown() {
return this.shown.asObservable();
}
public show() {
this.shown.next(true);
}
hide() {
this.shown.next(false);
}
ПА
A
A
A
ПА
ПА
ПА
ПА
A
ПА
ПА
let cmpRef = this.componentFactoryResolver.resolveComponentFactory(AlertComponent).create(this.injector);
this.applicationRef.attachView(cmpRef.hostView);
ПА
ПА
ПА
ДК
E
ДК
ДК