From 2d2c27d6d16469d5084e900bf3e9ab8060b126bd Mon Sep 17 00:00:00 2001 From: Raghu-Ch Date: Sat, 14 Jul 2018 13:07:49 -0400 Subject: [PATCH] Class Basic, Inheritance & Data Service --- .vscode/launch.json | 15 +++++ index.html | 7 +++ src/app.js | 31 ++++++++-- src/classes/car.js | 8 ++- src/classes/drone.js | 8 ++- src/classes/vehicle.js | 8 ++- src/fleet-data.js | 73 +++++++++++++++++++++++ src/services/data-error.js | 6 ++ src/services/fleet-data-service.js | 95 ++++++++++++++++++++++++++++++ style.css | 31 ++++++++++ 10 files changed, 275 insertions(+), 7 deletions(-) create mode 100644 .vscode/launch.json create mode 100644 src/fleet-data.js create mode 100644 src/services/data-error.js create mode 100644 src/services/fleet-data-service.js create mode 100644 style.css diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..2ba986f --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,15 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "chrome", + "request": "launch", + "name": "Launch Chrome against localhost", + "url": "http://localhost:8080", + "webRoot": "${workspaceFolder}" + } + ] +} \ No newline at end of file diff --git a/index.html b/index.html index 66c680c..1322861 100644 --- a/index.html +++ b/index.html @@ -6,9 +6,16 @@ Drones + +
+
+

Object Oriented programming in ES6

+

It's a great start:)

+
+