Commit 29393d99 authored by micha's avatar micha
Browse files

fix imports

parent 8321eb70
import {ROUTES as COMBINE_LATEST} from './exercises/combineLatest/combineLatest.routes'
import {ROUTES as FORK_JOIN} from './exercises/forkJoin/forkJoin.routes'
import {ROUTES as WITH_LATEST_FROM} from './exercises/withLatestFrom/withLatestFrom.routes'
import {ROUTES as ZIP} from './exercises/zip/zip.routes';
import {CombiningStreamsContainerComponent} from "./combining-streams.container.component";
export const ROUTES = [
......
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { BehaviorSubject, Observable, of } from 'rxjs';
import {
catchError,
delay,
distinctUntilChanged,
map
} from 'rxjs/operators';
import {Injectable} from '@angular/core';
import {Observable, of} from 'rxjs';
import {delay, map} from 'rxjs/operators';
import {Item, List} from "shared";
interface ListServiceState {
......@@ -21,7 +15,7 @@ interface ListServiceState {
})
export class ForkJoinListService {
constructor(private http: HttpClient) {
constructor() {
}
......
......@@ -3,10 +3,9 @@ import {CommonModule} from "@angular/common";
import {RouterModule} from "@angular/router";
import {ROUTES} from "./forkJoin.routes";
import {MatButtonModule} from "@angular/material/button";
import {StartForkJoinComponent} from "combining-streams/lib/exercises/forkJoin/start.forkJoin.component";
import {SolutionForkJoinComponent} from "combining-streams/lib/exercises/forkJoin/solution.forkJoin.component";
import {StartForkJoinComponent} from "./start.forkJoin.component";
import {SolutionForkJoinComponent} from "./solution.forkJoin.component";
import {MatListModule} from "@angular/material/list";
import {HttpClientModule} from "@angular/common/http";
@NgModule({
declarations: [
......@@ -17,7 +16,6 @@ import {HttpClientModule} from "@angular/common/http";
CommonModule,
MatButtonModule,
MatListModule,
HttpClientModule,
RouterModule.forChild(ROUTES)
]
})
......
......@@ -19,8 +19,6 @@ import {ForkJoinListService} from "combining-streams/lib/exercises/forkJoin/fork
})
export class StartForkJoinComponent {
// 1. Use `forJoin` to get lists and todos (httpGetLists(), httpGetTodos())
// 2. Use `leftJoin(items, lists, 'lId')`
list$: Observable<any> = interval(1000);
constructor(private listService: ForkJoinListService) {
......
......@@ -3,15 +3,15 @@ import {CommonModule} from "@angular/common";
import {RouterModule} from "@angular/router";
import {ROUTES} from "./http-service-v1.routes";
import {MatButtonModule} from "@angular/material/button";
import {StartForkJoinComponent} from "combining-streams/lib/exercises/forkJoin/start.forkJoin.component";
import {SolutionForkJoinComponent} from "combining-streams/lib/exercises/forkJoin/solution.forkJoin.component";
import {MatListModule} from "@angular/material/list";
import {HttpClientModule} from "@angular/common/http";
import {StartHttpServiceV1Component} from "combining-streams/lib/exercises/http-service-v1/start.http-service-v1.component";
import {SolutionHttpServiceV1Component} from "combining-streams/lib/exercises/http-service-v1/solution.http-service-v1.component";
@NgModule({
declarations: [
StartForkJoinComponent,
SolutionForkJoinComponent
StartHttpServiceV1Component,
SolutionHttpServiceV1Component
],
imports: [
CommonModule,
......
......@@ -7,7 +7,7 @@ import {HttpClientModule} from "@angular/common/http";
import {RouterModule} from "@angular/router";
import {ROUTES} from "./opt-in-updates-v1.routes";
import {NgModule} from "@angular/core";
import {MatFormField, MatFormFieldModule} from "@angular/material/form-field";
import {MatFormFieldModule} from "@angular/material/form-field";
@NgModule({
declarations: [
......
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