bugfix
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import {Component, inject} from "@angular/core";
|
||||
import {ChangeDetectionStrategy, Component, inject} from "@angular/core";
|
||||
import {HotelComponent} from "./hotel.component";
|
||||
import {Hotel} from "../model/hotel";
|
||||
import {FormsModule} from "@angular/forms";
|
||||
@ -32,7 +32,8 @@ import {StarComponent} from "./star.component";
|
||||
`,
|
||||
imports: [FormsModule, HotelComponent, AsyncPipe, CurrencyComponent, RouterLink, StarComponent, NgIf],
|
||||
providers: [HotelService],
|
||||
selector: 'app-hotels'
|
||||
selector: 'app-hotels',
|
||||
changeDetection: ChangeDetectionStrategy.OnPush
|
||||
})
|
||||
export class HotelsComponent {
|
||||
|
||||
|
Reference in New Issue
Block a user