1.1.1 • Published 5 years ago
ng-choice-field v1.1.1
NgChoiceFieldLibrary
A simple Angular 2+ multiple choice element, useful for result filtering or grouping of multiple choices.
You may find the full documentation here
NPM install
npm i ng-choice-field
Manual Build
Clone the repository
git clone https://github.com/aivaraskriksciunas/ng-choice-field.git
Build the modules
Run ng build NgChoiceField
to build the project. The build artifacts will be stored in the dist/
directory.
Running unit tests
Run ng test
to execute the unit tests via Karma.
Usage
Importing
Import this component to your module:
import { NgChoiceFieldModule } from 'ng-choice-field';
@NgModule({
imports: [
NgChoiceFieldModule
],
})
export class AppModule { }
Importing icons
Add this to your styles.css
:
@import url('~ng-choice-field/assets/icon_font.css');
Using in components
To use this field in your components, use the following code in your templates:
<ng-choice-field
[items]='items'>
</ng-choice-field>
More information is availabe in the official documentation.