Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/byteclubfr/password-and-confirm-directive

Simple password input and confirm Angular directive
https://github.com/byteclubfr/password-and-confirm-directive

Last synced: 1 day ago
JSON representation

Simple password input and confirm Angular directive

Awesome Lists containing this project

README

        

# password-and-confirm-directive

Simple password input and confirm [AngularJS](http://angularjs.org/) directive.

## How to use it

You must include the password-and-confirm-directive dependency on your angular module:
```
var app = angular.module("demoapp", ["passwordAndConfirm"]);
```

And add this in your template :
```

```

## Options

* `model` (required) : the password scope variable.
* `form` (required) : the form
* `template` (optional) : alternative template

## Use your own template
```

```

You can use this one as a start point :
```


Mot de passe



Confirmer le mot de passe


```

The `form.confirm.$error.password` is raised if the two fields are not the same.

## LICENSE

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004

Copyright (C) 2004 Sam Hocevar

Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

0. You just DO WHAT THE FUCK YOU WANT TO.