Make the buttons change the border from red to blue
- Open the Exercise Problem stackblitz using the link below.
- In the
ngOnInit()lifecycle method set the value of the
elclass instance variable to the
nativeElementvalue that is available using the
ElementRefclass instance is already injected into the class as a private instance variable using the
- When you click the "Red" button, the border color should be set to red, and when you click the "Blue" button, the border color should be set to blue.
- Feel free to study and play with this first exercise!