diff --git a/angular-hub/src/app/pages/communities/index.page.ts b/angular-hub/src/app/pages/communities/index.page.ts index 888ae0d5..79be9505 100644 --- a/angular-hub/src/app/pages/communities/index.page.ts +++ b/angular-hub/src/app/pages/communities/index.page.ts @@ -39,8 +39,7 @@ export const routeMeta: RouteMeta = { [style]="{ width: '230px' }" [showClear]="true" placeholder="Select a country" - [ngModel]="selectedCountry()" - (ngModelChange)="selectedCountry.set($event)" + [(ngModel)]="selectedCountry" /> diff --git a/angular-hub/src/app/pages/index.page.ts b/angular-hub/src/app/pages/index.page.ts index 53d35734..31a40c83 100644 --- a/angular-hub/src/app/pages/index.page.ts +++ b/angular-hub/src/app/pages/index.page.ts @@ -18,6 +18,7 @@ import { MessagesModule } from 'primeng/messages'; import { EventSectionComponent } from '../components/event-section.component'; import { MessageComponent } from '../components/message.component'; import { BannerComponent } from '../components/banner.component'; +import { DatePipe } from '@angular/common'; export const routeMeta: RouteMeta = { meta: [ @@ -145,8 +146,7 @@ export const routeMeta: RouteMeta = { @@ -163,8 +163,7 @@ export const routeMeta: RouteMeta = { [style]="{ width: '100%' }" [options]="languages()" [showClear]="true" - [ngModel]="selectedLanguage()" - (ngModelChange)="selectedLanguage.set($event)" + [(ngModel)]="selectedLanguage" placeholder="Select a language" /> @@ -173,8 +172,7 @@ export const routeMeta: RouteMeta = { ariaLabel="Display remote events only" id="remote" name="remote" - [ngModel]="isRemote()" - (ngModelChange)="isRemote.set($event)" + [(ngModel)]="isRemote" /> @@ -221,6 +219,7 @@ export const routeMeta: RouteMeta = { EventSectionComponent, MessageComponent, BannerComponent, + DatePipe, ], }) export default class EventsComponent {