Resources
-Here are some links to help you get started:
- - - - -Next Steps
-What do you want to do next with your app?
- - - -ng generate component xyz-
ng add @angular/material-
ng add @angular/pwa-
ng add _____-
ng test-
ng build --prod-
diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts deleted file mode 100644 index d425c6f..0000000 --- a/src/app/app-routing.module.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { NgModule } from '@angular/core'; -import { Routes, RouterModule } from '@angular/router'; - -const routes: Routes = []; - -@NgModule({ - imports: [RouterModule.forRoot(routes)], - exports: [RouterModule] -}) -export class AppRoutingModule { } diff --git a/src/app/app.component.html b/src/app/app.component.html index e48d8c1..d713365 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,534 +1,21 @@ - - - - - - - - + - - - -
-Here are some links to help you get started:
- - - - -What do you want to do next with your app?
- - - -ng generate component xyz-
ng add @angular/material-
ng add @angular/pwa-
ng add _____-
ng test-
ng build --prod-
Flugnr. #{{ item.id }}
+Datum: {{ item.date | date: 'dd.MM.yyyy HH:mm' }}
+ ++ +
+Flugnr. #{{ item.id }}
+Datum: {{ item.date | date: 'dd.MM.yyyy HH:mm' }}
+ +
+
+
+
Hier könnte auch der Datensatz mit der Id {{ id }} stehen!
+ + + ` +}) +export class FlightEditComponent implements OnInit { + public id: string; + + constructor(private route: ActivatedRoute) { + route.params.subscribe(p => { + this.id = p['id']; + }); + } + + ngOnInit() {} + + exitWarning = { + show: false, + resolve: null + }; + + decide(decision: boolean) { + this.exitWarning.show = false; + this.exitWarning.resolve(decision); + } + + canDeactivate() { + this.exitWarning.show = true; + return new Promise(resolve => { + this.exitWarning.resolve = resolve; + }); + } +} diff --git a/src/app/flight-booking/flight-search-reactive/flight-search-reactive.component.css b/src/app/flight-booking/flight-search-reactive/flight-search-reactive.component.css new file mode 100644 index 0000000..58741db --- /dev/null +++ b/src/app/flight-booking/flight-search-reactive/flight-search-reactive.component.css @@ -0,0 +1,11 @@ +input.ng-valid { + border-left-style: solid; + border-left-color: forestgreen; + border-left-width: 5px; +} + +input.ng-invalid { + border-left-style: solid; + border-left-color: hotpink; + border-left-width: 5px; +} diff --git a/src/app/flight-booking/flight-search-reactive/flight-search-reactive.component.html b/src/app/flight-booking/flight-search-reactive/flight-search-reactive.component.html new file mode 100644 index 0000000..2ca31e6 --- /dev/null +++ b/src/app/flight-booking/flight-search-reactive/flight-search-reactive.component.html @@ -0,0 +1,94 @@ +
+Warenkorb
+----------------------
+{{ selectedFlight | json }}
+
+
+Warenkorb
+----------------------
+{{ selectedFlight | json }}
+
+Platzhalter-Seite. Hier könnte auch Ihre Werbung stehen ;-)
+ + ` +}) +export class PassengerSearchComponent implements OnInit { + constructor(private oauthService: OAuthService) {} + ngOnInit() {} + + refresh() { + this.oauthService.silentRefresh(); + } +} diff --git a/src/app/flight-booking/services/flight.service.ts b/src/app/flight-booking/services/flight.service.ts new file mode 100644 index 0000000..27171c6 --- /dev/null +++ b/src/app/flight-booking/services/flight.service.ts @@ -0,0 +1,36 @@ +import { Injectable, Inject } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http'; +import { BASE_URL } from '../../app.tokens'; +import { Observable } from 'rxjs'; +import { Flight } from '../../entities/flight'; +import { OAuthService } from 'angular-oauth2-oidc'; + +@Injectable() +export class FlightService { + constructor( + private oauthService: OAuthService, + private http: HttpClient, + @Inject(BASE_URL) private baseUrl: string + ) {} + + public flights: ArrayLogin with Authorization Server
+Test settings
++ + +
+ Username/Password: max/geheim ++ + +
+Username/Password: max/geheim
++ Note: When using IE, some security settings block the communication + with popups. This prevents that this feature works. +
++ + +
+ Username/Password: alice/alice ++ + +
+Username/Password: alice/alice
++ Note: When using IE, some security settings block the communication + with popups. This prevents that this feature works. +
+access_token_expiration: {{ access_token_expiration }}
+id_token_expiration: {{ id_token_expiration }}
+access_token: {{ access_token }}
+id_token: {{ id_token }}
+{{ userProfile | json }}
+