angular-password

WebJar for angular-password

License

License

MIT
Categories

Categories

Github Development Tools Version Controls Angular User Interface Web Frameworks
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

github-com-gdi2290-angular-password
Last Version

Last Version

1.0.3
Release Date

Release Date

Type

Type

jar
Description

Description

angular-password
WebJar for angular-password
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/gdi2290/angular-password

Download github-com-gdi2290-angular-password

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/github-com-gdi2290-angular-password/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>github-com-gdi2290-angular-password</artifactId>
    <version>1.0.3</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/github-com-gdi2290-angular-password/
implementation 'org.webjars.npm:github-com-gdi2290-angular-password:1.0.3'
// https://jarcasting.com/artifacts/org.webjars.npm/github-com-gdi2290-angular-password/
implementation ("org.webjars.npm:github-com-gdi2290-angular-password:1.0.3")
'org.webjars.npm:github-com-gdi2290-angular-password:jar:1.0.3'
<dependency org="org.webjars.npm" name="github-com-gdi2290-angular-password" rev="1.0.3">
  <artifact name="github-com-gdi2290-angular-password" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='github-com-gdi2290-angular-password', version='1.0.3')
)
libraryDependencies += "org.webjars.npm" % "github-com-gdi2290-angular-password" % "1.0.3"
[org.webjars.npm/github-com-gdi2290-angular-password "1.0.3"]

Dependencies

compile (13)

Group / Artifact Type Version
org.webjars.npm : gulp-jshint jar [2.0.0,3)
org.webjars.npm : karma-phantomjs-launcher jar [1.0.0,2)
org.webjars.npm : karma-jasmine jar [0.3.8,0.4)
org.webjars.npm : karma-spec-reporter jar 0.0.26
org.webjars.npm : jshint jar [2.9.2,3)
org.webjars.npm : karma jar [0.13.22,0.14)
org.webjars.npm : phantomjs-prebuilt jar [2.1.7,3)
org.webjars.npm : jasmine-core jar [2.4.1,3)
org.webjars.npm : angular-mocks jar [1.5.5,2)
org.webjars.npm : angular jar [1.5.5,2)
org.webjars.npm : gulp-uglify jar [1.5.3,2)
org.webjars.npm : gulp-rename jar [1.2.2,2)
org.webjars.npm : gulp jar [3.9.1,4)

Project Modules

There are no modules declared in this project.

angular-password

The most performant AngularJS directive for matching two password input fields. I use angular's built in $parsers rather than relying on a $watch

Installation

bower install angular-password

or

npm install angular-password

Inject angular-password into your module

angular.module('yourmodulename', ['ngPassword']);

Simple example.

<input name="newPassword" ng-model="password.new">
<input match-password="newPassword" name="confirmPassword" ng-model="password.confirm">

With ngMessages

<form name="profileForm" autocomplete="off" novalidate="" ng-submit="submit(password)">
  <fieldset>
    <label for="newPassword">New Password</label>
    <input type="password" name="newPassword" ng-model="password.new" required=""/>
    <div class="clearfix">
      <div ng-messages="profileForm.newPassword.$error" ng-if="profileForm.$submitted || profileForm.newPassword.$dirty" ng-messages-multiple="ng-messages-multiple" class="error-messages slide-right">
        <div ng-message="required" class="message slide-left">You did not enter a field name</div>
      </div>
    </div>
    <label for="confirmPassword">Re-Type New Password</label>
    <input type="password" name="confirmPassword" ng-model="password.confirm" match-password="newPassword" required=""/>
    <div class="clearfix">
      <div ng-messages="profileForm.confirmPassword.$error" ng-if="profileForm.$submitted || profileForm.confirmPassword.$dirty" ng-messages-multiple="ng-messages-multiple" class="error-messages slide-right">
        <div ng-message="required" class="message slide-left">You did not enter a field name</div>
        <div ng-message="passwordMatch" class="message slide-left">Your passwords did not match</div>
      </div>
    </div>
  </fieldset>
  <button>Submit</button>
</form>

Licensing information can be found here

Versions

Version
1.0.3