Skip to content

Instantly share code, notes, and snippets.

@goors
Created October 1, 2016 15:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goors/b2573d1e2abb5ff3d209439905f8a5cb to your computer and use it in GitHub Desktop.
Save goors/b2573d1e2abb5ff3d209439905f8a5cb to your computer and use it in GitHub Desktop.
Password strength directive for angular template
<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