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 26
26
run : yarn prettier:check
27
27
- name : Check Readme
28
28
run : yarn readme:check
29
- - name : Build
29
+ - name : Build lib
30
30
run : yarn lib:build:prod
31
+ - name : Build app
32
+ run : yarn demo:build:prod
31
33
- name : Test
32
34
run : yarn lib:test:ci
33
35
- name : Coverage
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ import { getObservableLifecycle } from 'ngx-observable-lifecycle';
40
40
import { Observable } from 'rxjs';
41
41
import { takeUntil } from 'rxjs/operators';
42
42
43
- export function automaticUnsubscribe<T>(component): (source: Observable<T>) => Observable<T> {
43
+ export function automaticUnsubscribe<T>(component: any ): (source: Observable<T>) => Observable<T> {
44
44
const { ngOnDestroy } = getObservableLifecycle(component);
45
45
return (source: Observable<T>): Observable<T> => source.pipe(takeUntil(ngOnDestroy));
46
46
}
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 >
2
2
< hr />
3
3
< button (click) ="inputValue = inputValue + 1 "> Increment inputValue</ button >
4
4
< button (click) ="showChildComponent = !showChildComponent "> Toggle child component</ button >
Original file line number Diff line number Diff line change 1
1
< 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';
2
2
import { Observable } from 'rxjs' ;
3
3
import { takeUntil } from 'rxjs/operators' ;
4
4
5
- export function automaticUnsubscribe < T > ( component ) : ( source : Observable < T > ) => Observable < T > {
5
+ export function automaticUnsubscribe < T > ( component : any ) : ( source : Observable < T > ) => Observable < T > {
6
6
const { ngOnDestroy } = getObservableLifecycle ( component ) ;
7
7
return ( source : Observable < T > ) : Observable < T > => source . pipe ( takeUntil ( ngOnDestroy ) ) ;
8
8
}
You can’t perform that action at this time.
0 commit comments