diff --git a/README.md b/README.md index b4411de6..3f2b0b69 100644 --- a/README.md +++ b/README.md @@ -108,21 +108,21 @@ export class AppComponent implements OnInit { id: 1, sectionID: 1, name: 'Item 1', - start: moment(), + start: moment().startOf('day'), end: moment().add(5, 'days'), classes: '' }, { id: 2, sectionID: 3, name: 'Item 2', - start: moment(), + start: moment().startOf('day'), end: moment().add(3, 'days'), classes: '' }, { id: 3, sectionID: 1, name: 'Item 3', - start: moment().add(1, 'days'), + start: moment().add(1, 'days').startOf('day'), end: moment().add(3, 'days'), classes: '' }]; @@ -205,7 +205,7 @@ A selection of events are provided to hook into when creating the scheduler, and # Demo -[Demo]() +[Demo](https://abhishekjain12.github.io/ngx-time-scheduler/) # Credits diff --git a/angular.json b/angular.json index bd9c32ca..3031f9d7 100644 --- a/angular.json +++ b/angular.json @@ -13,7 +13,7 @@ "build": { "builder": "@angular-devkit/build-angular:browser", "options": { - "outputPath": "dist/TimeScheduler", + "outputPath": "dist-demo/TimeScheduler", "index": "src/index.html", "main": "src/main.ts", "polyfills": "src/polyfills.ts", @@ -167,4 +167,4 @@ } }, "defaultProject": "TimeScheduler" -} \ No newline at end of file +} diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 5ff5e842..ace7da3e 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -69,22 +69,22 @@ export class AppComponent implements OnInit { id: 1, sectionID: 1, name: 'Item 1', - start: moment('2019-10-29'), - end: moment('2019-10-29').add(5, 'days'), + start: moment().startOf('day'), + end: moment().add(5, 'days'), classes: '' }, { id: 2, sectionID: 3, name: 'Item 2', - start: moment('2019-10-30'), - end: moment('2019-10-30').add(4, 'days'), + start: moment().startOf('day'), + end: moment().add(4, 'days'), classes: '' }, { id: 3, sectionID: 1, name: 'Item 3', - start: moment('2019-10-31').add(1, 'days'), - end: moment('2019-10-31').add(3, 'days'), + start: moment().add(1, 'days').startOf('day'), + end: moment().add(3, 'days'), classes: '' }];