Assignment 1 components

Push your solutions to our github classroom:
https://classroom.github.com/a/fS4JztqD

It is best to create for each exercise a new component, in this way you also practice creating new components.

You can make a new component by:

  • the angular cli : Ng generate component [name] or ng g c [name]

A subfolder is created for each component (src / app / [name]
Via the selector you can display the component somewhere in the application. The selector is a new HTML element!

Assignment

-Make components for:

1. display current time with following format: “HH:mm:ss”   and update the time every second

2. display a counter  and update the counter every 200ms

3. Display a random number between 1 and 100   and update every 2 seconds the random number. (Create the random number with the lodash module)