|
@@ -3,18 +3,19 @@ import {BrowserModule} from '@angular/platform-browser';
|
|
|
|
|
|
|
|
import {RouterModule} from '@angular/router';
|
|
import {RouterModule} from '@angular/router';
|
|
|
import {AppComponent} from "./app.component";
|
|
import {AppComponent} from "./app.component";
|
|
|
-import {BoatsViewComponent} from "./boats-view/boats-view.component";
|
|
|
|
|
|
|
+import {BoatsViewComponent} from "./boats-component/boats-view.component";
|
|
|
import {PageNotFoundComponent} from './page-not-found/page-not-found.component';
|
|
import {PageNotFoundComponent} from './page-not-found/page-not-found.component';
|
|
|
import {HomeViewComponent} from './home-view/home-view.component';
|
|
import {HomeViewComponent} from './home-view/home-view.component';
|
|
|
import {TranslatePipe} from './translate/translate.pipe';
|
|
import {TranslatePipe} from './translate/translate.pipe';
|
|
|
import {TranslateService} from "./translate/translate.service";
|
|
import {TranslateService} from "./translate/translate.service";
|
|
|
import {HttpClientModule} from "@angular/common/http";
|
|
import {HttpClientModule} from "@angular/common/http";
|
|
|
-import { NavbarComponent } from './navbar/navbar.component';
|
|
|
|
|
-import { LoginViewComponent } from './login-view/login-view.component';
|
|
|
|
|
-import { RegisterViewComponent } from './register-view/register-view.component';
|
|
|
|
|
-import { ReservationViewComponent } from './reservation-view/reservation-view.component';
|
|
|
|
|
-import { MapViewComponent } from './map-view/map-view.component';
|
|
|
|
|
-import { AddBoatComponentComponent } from './add-boat-component/add-boat-component.component';
|
|
|
|
|
|
|
+import {NavbarComponent} from './navbar/navbar.component';
|
|
|
|
|
+import {LoginViewComponent} from './login-view/login-view.component';
|
|
|
|
|
+import {RegisterViewComponent} from './register-view/register-view.component';
|
|
|
|
|
+import {ReservationViewComponent} from './reservation-view/reservation-view.component';
|
|
|
|
|
+import {MapViewComponent} from './map-view/map-view.component';
|
|
|
|
|
+import {AddBoatComponent} from './add-boat-component/add-boat.component';
|
|
|
|
|
+import {FormsModule, ReactiveFormsModule} from "@angular/forms";
|
|
|
|
|
|
|
|
export function setupTranslateServiceFactory(
|
|
export function setupTranslateServiceFactory(
|
|
|
service: TranslateService): Function {
|
|
service: TranslateService): Function {
|
|
@@ -33,7 +34,7 @@ export function setupTranslateServiceFactory(
|
|
|
RegisterViewComponent,
|
|
RegisterViewComponent,
|
|
|
ReservationViewComponent,
|
|
ReservationViewComponent,
|
|
|
MapViewComponent,
|
|
MapViewComponent,
|
|
|
- AddBoatComponentComponent
|
|
|
|
|
|
|
+ AddBoatComponent
|
|
|
],
|
|
],
|
|
|
imports: [
|
|
imports: [
|
|
|
BrowserModule,
|
|
BrowserModule,
|
|
@@ -44,8 +45,11 @@ export function setupTranslateServiceFactory(
|
|
|
{path: 'register', component: RegisterViewComponent},
|
|
{path: 'register', component: RegisterViewComponent},
|
|
|
{path: 'map', component: MapViewComponent},
|
|
{path: 'map', component: MapViewComponent},
|
|
|
{path: 'reservation', component: ReservationViewComponent},
|
|
{path: 'reservation', component: ReservationViewComponent},
|
|
|
|
|
+ {path: 'add-boat', component: AddBoatComponent},
|
|
|
{path: '**', component: PageNotFoundComponent},
|
|
{path: '**', component: PageNotFoundComponent},
|
|
|
]),
|
|
]),
|
|
|
|
|
+ ReactiveFormsModule,
|
|
|
|
|
+ FormsModule,
|
|
|
HttpClientModule
|
|
HttpClientModule
|
|
|
],
|
|
],
|
|
|
providers: [TranslateService,
|
|
providers: [TranslateService,
|