File tree Expand file tree Collapse file tree 5 files changed +7
-5
lines changed Expand file tree Collapse file tree 5 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 2626 run : yarn prettier:check
2727 - name : Check Readme
2828 run : yarn readme:check
29- - name : Build
29+ - name : Build lib
3030 run : yarn lib:build:prod
31+ - name : Build app
32+ run : yarn demo:build:prod
3133 - name : Test
3234 run : yarn lib:test:ci
3335 - name : Coverage
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ import { getObservableLifecycle } from 'ngx-observable-lifecycle';
4040import { Observable } from 'rxjs';
4141import { takeUntil } from 'rxjs/operators';
4242
43- export function automaticUnsubscribe<T>(component): (source: Observable<T>) => Observable<T> {
43+ export function automaticUnsubscribe<T>(component: any ): (source: Observable<T>) => Observable<T> {
4444 const { ngOnDestroy } = getObservableLifecycle(component);
4545 return (source: Observable<T>): Observable<T> => source.pipe(takeUntil(ngOnDestroy));
4646}
Original file line number Diff line number Diff line change 1- < app-child *ngIf ="showChildComponent " [input ] ="inputValue "> </ app-child >
1+ < app-child *ngIf ="showChildComponent " [input1 ] ="inputValue "> </ app-child >
22< hr />
33< button (click) ="inputValue = inputValue + 1 "> Increment inputValue</ button >
44< button (click) ="showChildComponent = !showChildComponent "> Toggle child component</ button >
Original file line number Diff line number Diff line change 11< p > child-component works!</ p >
2- input value is: {{ input }}
2+ input value is: {{ input1 }}
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { getObservableLifecycle } from 'ngx-observable-lifecycle';
22import { Observable } from 'rxjs' ;
33import { takeUntil } from 'rxjs/operators' ;
44
5- export function automaticUnsubscribe < T > ( component ) : ( source : Observable < T > ) => Observable < T > {
5+ export function automaticUnsubscribe < T > ( component : any ) : ( source : Observable < T > ) => Observable < T > {
66 const { ngOnDestroy } = getObservableLifecycle ( component ) ;
77 return ( source : Observable < T > ) : Observable < T > => source . pipe ( takeUntil ( ngOnDestroy ) ) ;
88}
You can’t perform that action at this time.
0 commit comments