Commit b623730b authored by micha's avatar micha
Browse files

progress

parent 69188be0
![](./assets/images/Reactive-architecture-and-ux-patterns_angular_instant-updates_michael-hladky.png)
![](./assets/images/Reactive-architecture-and-ux-patterns_angular_opt-in-updates_michael-hladky.png)
![](./assets/images/Reactive-architecture-and-ux-patterns_angular_combination-operators_withLatestFrom-outer-ongoing_michael-hladky.png)
![](./assets/images/Reactive-architecture-and-ux-patterns_angular_combination-operators_withLatestFrom-outer-error_michael-hladky.png)
![](./assets/images/Reactive-architecture-and-ux-patterns_angular_combination-operators_withLatestFrom-inner-error_michael-hladky.png)
![](./assets/images/Reactive-architecture-and-ux-patterns_angular_combination-operators_withLatestFrom-outer-complete_michael-hladky.png)
![](./assets/images/Reactive-architecture-and-ux-patterns_angular_combination-operators_withLatestFrom-inner-complete_michael-hladky.png)
Gotcha => startWith
......@@ -33,7 +33,7 @@ import { BlogBasicService, toBlogPosts } from 'shared';
</div>
`
})
export class SolutionOptInUpdatesV1Component {
export class SolutionWithLatestFromComponent {
comment = 'my new comment';
optInListClick$ = new Subject();
......
......@@ -33,7 +33,7 @@ import { BlogBasicService, toBlogPosts } from 'shared';
</div>
`
})
export class StartOptInUpdatesV1Component {
export class StartWithLatestFromComponent {
comment = 'my new comment';
optInListClick$ = new Subject();
......
import {StartOptInUpdatesV1Component} from "combining-streams/lib/exercises/opt-in-updates-v1/start.opt-in-updates-v1.component";
import {SolutionOptInUpdatesV1Component} from "combining-streams/lib/exercises/opt-in-updates-v1/solution.opt-in-updates-v1.component";
import {StartWithLatestFromComponent} from "combining-streams/lib/exercises/withLatestFrom/start.withLatestFrom.component";
import {SolutionWithLatestFromComponent} from "combining-streams/lib/exercises/withLatestFrom/solution.withLatestFrom.component";
import {CommonModule} from "@angular/common";
import {MatListModule} from "@angular/material/list";
import {MatButtonModule} from "@angular/material/button";
import {HttpClientModule} from "@angular/common/http";
import {RouterModule} from "@angular/router";
import {ROUTES} from "./opt-in-updates-v1.routes";
import {ROUTES} from "./withLatestFrom.routes";
import {NgModule} from "@angular/core";
import {MatFormFieldModule} from "@angular/material/form-field";
import {FormsModule} from "@angular/forms";
......@@ -13,8 +13,8 @@ import {MatInputModule} from "@angular/material/input";
@NgModule({
declarations: [
StartOptInUpdatesV1Component,
SolutionOptInUpdatesV1Component
StartWithLatestFromComponent,
SolutionWithLatestFromComponent
],
imports: [
CommonModule,
......@@ -27,5 +27,5 @@ import {MatInputModule} from "@angular/material/input";
RouterModule.forChild(ROUTES)
]
})
export class OptInUpdatesV1Module {
export class WithLatestFromModule {
}
import {StartOptInUpdatesV1Component} from "combining-streams/lib/exercises/opt-in-updates-v1/start.opt-in-updates-v1.component";
import {SolutionOptInUpdatesV1Component} from "combining-streams/lib/exercises/opt-in-updates-v1/solution.opt-in-updates-v1.component";
import {StartWithLatestFromComponent} from "combining-streams/lib/exercises/withLatestFrom/start.withLatestFrom.component";
import {SolutionWithLatestFromComponent} from "combining-streams/lib/exercises/withLatestFrom/solution.withLatestFrom.component";
export const ROUTES = [
......@@ -8,11 +8,11 @@ export const ROUTES = [
children: [
{
path: '',
component: StartOptInUpdatesV1Component
component: StartWithLatestFromComponent
},
{
path: 'solution',
component: SolutionOptInUpdatesV1Component
component: SolutionWithLatestFromComponent
}
]
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment