how make reset password strenght in angular

JavaScript
How to make reset password mprovement *- To add "Password Strength" text just on top of Password Strength bar, since currently it is kind of ambiguous what the stands for.

Also, we can use the below color scheme:Weak Password - RedMedium Strength - YellowStrong Password  - Green  

Refer to the attached screenshot in angular
Source

Also in JavaScript: