Angular form validation directive to compare two inputs
npm install angular-compare-validator TypeScript
import { CompareValidatorModule } from 'angular-compare-validator';
@NgModule({
imports: [
CompareValidatorModule
]
})
export class AppModule {
}
`
$3
` html
Passwords do not match
`
Demo
!demo
Build
Run prepublish.ps1 to generate build output in the ./dist folder.
Test
To run tests, execute the test.ps1 script. JUnit test results are then found in karma-results.xml while coverage is available in the Cobertura format at coverage/PhantomJS/typescript.coverageresult`.