Skip to content

Angular Material is verbose, here's a wrapper library to reduce that!

Notifications You must be signed in to change notification settings

benwinding/mat-reduce

Repository files navigation

mat-reduce

NPM Version License Downloads/week Github Issues

A less verbose angular material.

Get Started

yarn add mat-reduce

Simple (Without Quill)

To include all form controls, except the Quill Editor, use the following:

import { MatReduceCoreModule } from 'mat-reduce-core';

@NgModule({
  ...,
  MatReduceCoreModule,
  ...
})

Advanced (With Quill)

To include all modules and the <form-quill-editor />, use the following:

import { MatReduceModule } from 'mat-reduce';

@NgModule({
  ...,
  MatReduceModule,
  ...
})

Add the quill script to angular.json, like so:

...
"scripts": [
  "node_modules/quill/dist/quill.min.js"
],
...

Development

To develop on this locally, simply clone this repo and run:

yarn
yarn start

And a development demo of each of the controls is available on http://localhost:4567