Created
October 1, 2016 15:05
-
-
Save goors/b2573d1e2abb5ff3d209439905f8a5cb to your computer and use it in GitHub Desktop.
Password strength directive for angular template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form name="passwordForm"> | |
<input type="password" class="form-control" name="password" data-ng-model="ctrl.profile.password" check-strength="ctrl.profile.password" | |
placeholder="{{'backend.segments.password' | i18next}}"> | |
<span class="help-inline" data-ng-show='passwordForm.password.$valid && passwordForm.password.$dirty' data-ng-class="strength">This password is {{strength}} ! </span> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment