Password-Generator is an Angular directive that creates a password generator UI for a popup input.
Requirements
Link to password-generator's CSS and Javascript files.
<link rel="stylesheet" href="password-generator/css/password-generator.css"/>
<script src="password-generator/js/directives.js"></script>
In your app's directives.js file, add the passwordGenerator.directives module.
angular.module('myApp.directives', ['popup.directives', 'passwordGenerator.directives']);
Last, simply add a password attribute to an <input>
.
<input type="text" popup password/>