项目作者: NickHodges

项目描述 :
A project to illustrate both custom directives and custom validators
高级语言: TypeScript
项目地址: git://github.com/NickHodges/primedirective.git
创建时间: 2018-11-26T00:38:51Z
项目社区:https://github.com/NickHodges/primedirective

开源协议:

下载


Prime Directive

Purpose

The purpose of this project is to illustrate both custom directives and custom validators in Angular

The current version supported is Angular 7.1.

What It Does

It creates a simple application that:

  • Uses the Angular Material controls
  • Allows only numbers to be entered into the input by creating NumbersOnlyDirective which allows only numbers to be typed, pasted, and dragged to the input control
  • Validates that the number entered is a prime number using NumbersValidator.isPrimeNumber() as a validator in the Form Group.

Further Information

You can contact me at nickhodges@gmail.com or on http://www.anglesandtypes.io