This project was generated with Angular CLI version 6.1.5.
Files that are created inside the skeleton
(root) and src
folder have been already discussed during the practice session (contents in this link). You are not expected to create e2e tests just yet, but each *.ts
files under your src/app
directory should have corresponding *.spec.ts
files that performs unit tests on your code. As we have done so in our practice sessions, you are expected to add components under the src/app
directory freely, according to your needs. Nicely refactored code will result in better readability and is recommended.
The in-memory-data.service.ts
file is added to provide mock-backend for you to test out your application, and serves as specified above. Please do not modify this file. Under src/app/*
, You are expected to create Services
that communicate using HTTP, and Components
that produce each pages meeting the requirements. The existing AppCompoenent
is expected to be the root component of the entire application.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.