This is a small app that implements a timer/stopwatch widget as an Angular component, similar to what you'll see in the results of a Google search for either "stopwatch" or "timer"
Grab the code and refactor it so that it meets your standard for production ready code.
You do not need to keep the existing code or project structure.
The only requirement is that it maintains basic the functionality of a timer/stopwatch, and that it meets your standards!
Fork + clone this repo and run npm install
in the root directory of the repo.
Run npm start
or 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 npm run build
or 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 npm run test
or ng test
to execute the unit tests via Karma.
Run npm run e2e
or 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.