Skip to content

Commit 2579ba4

Browse files
authored
Merge branch 'main' into codecov
2 parents eb3a2a0 + 1ea7dd1 commit 2579ba4

File tree

79 files changed

+3291
-840
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+3291
-840
lines changed

apps/demos/src/app/features/template/pipes/pipes.module.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,7 @@ import { RouterModule } from '@angular/router';
44
export const ROUTES = [
55
{
66
path: '',
7-
redirectTo: 'push'
8-
},
9-
{
10-
path: 'push',
11-
loadChildren: () =>
12-
import('./push-poc/push-poc.module').then(
13-
m => m.PushPocModule
14-
)
7+
redirectTo: 'memo'
158
},
169
{
1710
path: 'memo',

apps/demos/src/app/features/template/pipes/push-poc/push-poc.routes.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

apps/demos/src/app/features/template/push/push-basic-example/push-basic-example.routes.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

apps/demos/src/app/features/template/pipes/push-poc/push-poc.component.ts renamed to apps/demos/src/app/features/template/push/push-basic/push-basic.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import { distinctUntilChanged, map, share, tap } from 'rxjs/operators';
4242
`],
4343
changeDetection: ChangeDetectionStrategy.OnPush
4444
})
45-
export class PushPocComponent {
45+
export class PushBasicComponent {
4646

4747
readonly updateClick = new Subject<void>();
4848
private _numRendered = 0;

apps/demos/src/app/features/template/pipes/push-poc/push-poc.module.ts renamed to apps/demos/src/app/features/template/push/push-basic/push-basic.module.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import { MatButtonModule } from '@angular/material/button';
44
import { RouterModule } from '@angular/router';
55
import { PushModule } from '@rx-angular/template';
66
import { UnpatchModule } from '@rx-angular/template/unpatch';
7-
import { DirtyChecksModule } from '../../../../shared/debug-helper/dirty-checks';
8-
import { PushPocComponent } from './push-poc.component';
9-
import { ROUTES } from './push-poc.routes';
7+
import { DirtyChecksModule } from '../../../../shared/debug-helper/dirty-checks/index';
8+
import { PushBasicComponent } from './push-basic.component';
9+
import { ROUTES } from './push-basic.routes';
1010

11-
const DECLARATIONS = [PushPocComponent];
11+
const DECLARATIONS = [PushBasicComponent];
1212

1313
@NgModule({
1414
declarations: [DECLARATIONS],
@@ -22,5 +22,5 @@ const DECLARATIONS = [PushPocComponent];
2222
],
2323
exports: [DECLARATIONS]
2424
})
25-
export class PushPocModule {
25+
export class PushBasicModule {
2626
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { PushBasicComponent } from './push-basic.component';
2+
3+
export const ROUTES = [
4+
{
5+
path: '',
6+
component: PushBasicComponent
7+
}
8+
];
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ChangeDetectionStrategy, Component } from '@angular/core';
2-
import { BehaviorSubject, Subject } from 'rxjs';
2+
import { BehaviorSubject, ReplaySubject, Subject } from 'rxjs';
33
import { distinctUntilChanged, map, share, shareReplay } from 'rxjs/operators';
44

55
@Component({
@@ -74,7 +74,7 @@ import { distinctUntilChanged, map, share, shareReplay } from 'rxjs/operators';
7474
`],
7575
changeDetection: ChangeDetectionStrategy.OnPush
7676
})
77-
export class PushBasicExampleComponent {
77+
export class PushVsAsyncComponent {
7878

7979
private _depth = 5;
8080
set depth(depth: number) {
@@ -96,7 +96,7 @@ export class PushBasicExampleComponent {
9696
async: 3
9797
};
9898

99-
btnBothClick$ = new BehaviorSubject<any>(1);
99+
btnBothClick$ = new ReplaySubject<any>(1);
100100
readonly value$ = this.updateClick.pipe(
101101
map(() => Math.ceil(Math.random() * 100)),
102102
distinctUntilChanged(),

apps/demos/src/app/features/template/push/push-basic-example/push-basic-example.module.ts renamed to apps/demos/src/app/features/template/push/push-vs-async/push-vs-async.module.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ import { MatFormFieldModule } from '@angular/material/form-field';
77
import { MatIconModule } from '@angular/material/icon';
88
import { MatInputModule } from '@angular/material/input';
99
import { RouterModule } from '@angular/router';
10-
import { PushModule } from '@rx-angular/template';
10+
import { PushModule } from '@rx-angular/template/push';
1111
import { UnpatchModule } from '@rx-angular/template/unpatch';
1212
import { DirtyChecksModule } from '../../../../shared/debug-helper/dirty-checks';
1313
import { ValueProvidersModule } from '../../../../shared/debug-helper/value-provider/value-providers.module';
1414
import { VisualizerModule } from '../../../../shared/debug-helper/visualizer/visualizer.module';
1515
import { RecursiveModule } from '../../../../shared/template-structures/recursive/recursive.module';
16-
import { PushBasicExampleComponent } from './push-basic-example.component';
17-
import { ROUTES } from './push-basic-example.routes';
16+
import { PushVsAsyncComponent } from './push-vs-async.component';
17+
import { ROUTES } from './push-vs-async.routes';
1818

19-
const DECLARATIONS = [PushBasicExampleComponent];
19+
const DECLARATIONS = [PushVsAsyncComponent];
2020

2121
@NgModule({
2222
declarations: [DECLARATIONS],
@@ -38,5 +38,5 @@ const DECLARATIONS = [PushBasicExampleComponent];
3838
],
3939
exports: [DECLARATIONS]
4040
})
41-
export class PushBasicExampleModule {
41+
export class PushVsAsyncModule {
4242
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { PushVsAsyncComponent } from './push-vs-async.component';
2+
3+
export const ROUTES = [
4+
{
5+
path: '',
6+
component: PushVsAsyncComponent
7+
}
8+
];
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
export const MENU_ITEMS = [
1+
export const PUSH_PIPE_MENU = [
22
{
3-
label: 'Push Basic Example',
3+
label: 'Basic Example',
44
link: 'basic-example'
5+
},
6+
{
7+
label: 'Push vs Async',
8+
link: 'vs-async'
59
}
610
];

0 commit comments

Comments
 (0)