Skip to content

Commit

Permalink
24_1 W1023 Fix (#27445)
Browse files Browse the repository at this point in the history
  • Loading branch information
dxArtemiusz authored May 24, 2024
1 parent b111e34 commit 47be0cb
Show file tree
Hide file tree
Showing 11 changed files with 316 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { NgModule, Component, enableProdMode } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { DxSchedulerModule } from 'devextreme-angular';
import ArrayStore from "devextreme/data/array_store"
import {
Appointment, Service, Priority, Assignee,
} from './app.service';
Expand All @@ -16,7 +17,7 @@ if (!/localhost/.test(document.location.host)) {
providers: [Service],
})
export class AppComponent {
appointmentsData: Appointment[];
appointmentsData: ArrayStore;

assignees: Assignee[];

Expand All @@ -25,9 +26,13 @@ export class AppComponent {
currentDate: Date = new Date(2021, 4, 11);

constructor(service: Service) {
this.appointmentsData = service.getAppointments();
this.assignees = service.getAssignees();
this.priorities = service.getPriorities();

this.appointmentsData = new ArrayStore({
key: 'id',
data: service.getAppointments(),
})
}
}

Expand Down
Loading

0 comments on commit 47be0cb

Please sign in to comment.