diff --git a/.angular-cli.json b/.angular-cli.json index aa9e39c..1290020 100644 --- a/.angular-cli.json +++ b/.angular-cli.json @@ -16,6 +16,9 @@ "tsconfig": "tsconfig.app.json", "testTsconfig": "tsconfig.spec.json", "prefix": "app", + "scripts": [ + "../node_modules/moment/min/moment.min.js" + ], "styles": [ "scss/style.scss" ], diff --git a/package-lock.json b/package-lock.json index ae3c233..a213fb6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -777,6 +777,14 @@ "@types/jasmine": "2.5.54" } }, + "@types/moment": { + "version": "2.13.0", + "resolved": "https://registry.npmjs.org/@types/moment/-/moment-2.13.0.tgz", + "integrity": "sha1-YE69GJvDvDShVIaJQE5hoqSqyJY=", + "requires": { + "moment": "2.18.1" + } + }, "@types/node": { "version": "8.0.24", "resolved": "https://registry.npmjs.org/@types/node/-/node-8.0.24.tgz", diff --git a/package.json b/package.json index 1ff97cf..b50de08 100644 --- a/package.json +++ b/package.json @@ -25,10 +25,11 @@ "@angular/platform-browser-dynamic": "4.0.3", "@angular/router": "4.0.3", "@angular/upgrade": "4.0.3", + "@types/moment": "^2.13.0", "angular-in-memory-web-api": "^0.3.1", "chart.js": "2.5.0", "core-js": "2.4.1", - "moment": "2.18.1", + "moment": "^2.18.1", "ng2-charts": "1.6.0", "ng2-validation-manager": "^0.3.1", "ngx-bootstrap": "1.6.6", diff --git a/src/app/dashboard/add-data.component.html b/src/app/dashboard/add-data.component.html index 2cc8700..b05dda8 100644 --- a/src/app/dashboard/add-data.component.html +++ b/src/app/dashboard/add-data.component.html @@ -1,6 +1,77 @@