Filter module built with Angular 6 and Angular material to be able to filter Dimensions and make the correspondent queries
- Angular material
- Alternative 1: Install with Angular CLI
ng add @angular/material - Alternative 2: Install with NPM / Yarn: Angular Material Docs
- Alternative 1: Install with Angular CLI
-
In your application
npm i aafilter -
Add FilterModule to the imports in app.module.ts
e.g. app.module.tsimport { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { AppComponent } from './app.component'; import {AafilterModule} from 'aafilter2'; @NgModule({ declarations: [ AppComponent, ], imports: [ BrowserModule, BrowserAnimationsModule, AafilterModule, ], providers: [], bootstrap: [AppComponent] }) export class AppModule { } -
Add directive
<aa-filter></aa-filter>to the component template where you want to use the filter
| Name | Description |
|---|---|
| @Input() endpoint: string |
Endpoint to make queries |
| @Input() cardEndpoint: string |
Endpoint to get card dimensions |
| @Input() dimensions: string |
Card dimensions |
https://github.com/AAMarcosHannecke/aafilter/wiki/Debug-and-Publish-library-to-NPM
