Skip to content

kievsash/ngx-material-tools

Repository files navigation

NgxMaterialToolsDemo

Updated to Angular 14

This is a set of custom directives lib for Angular Materials.

For now it contains only matInputCommified directive to be used with standard material matInput.

How to use

Install

npm i ngx-material-tools

Import module

...
import {NgxMaterialToolsModule} from 'ngx-material-tools';

@NgModule({
...
  imports: [
...
    NgxMaterialToolsModule
  ],
...
})
export class AppModule { }

Use directive together with matInput in Angular Reactive Forms

  <form [formGroup]="myForm" style="margin-top: 20px">
    <mat-form-field appearance="outline">
      <mat-label>Deposit Amount</mat-label>
      <input matInput
             matInputCommified
             formControlName="deposit"
             type="text"/>
    </mat-form-field>
  </form>
>

Start demo project

Clone this repo and do install

npm install

ng serve

demo app

Did you Like this lib? Follow me on Twitter for more Angular and RxJS staff!

Need a mentorship for Angular and RxJS? Find me on codementor.io

Take a look at my video-course on Udemy/PacktPub:

Check my Youtube video-blog "Angular can waste your time!"

*This project was generated with Angular CLI version 8.3.14.

About

Customized Angular material controls

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published