Skip to content

Commit cf2c6da

Browse files
authored
Merge pull request #72 from cloudnc/fix/demo-app-compilation
chore: fix demo app compilation and make sure to build it on CI to not break it again
2 parents 1e90976 + 0b63e97 commit cf2c6da

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ jobs:
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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ import { getObservableLifecycle } from 'ngx-observable-lifecycle';
4040
import { Observable } from 'rxjs';
4141
import { 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
}

src/app/app.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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>

src/app/child/child.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
<p>child-component works!</p>
2-
input value is: {{ input }}
2+
input value is: {{ input1 }}

src/app/lib-example/lib-example.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { getObservableLifecycle } from 'ngx-observable-lifecycle';
22
import { Observable } from 'rxjs';
33
import { 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
}

0 commit comments

Comments
 (0)