@ng-matero/ng-select
v0.5.2
Published
Angular Select - All in One UI Select, Multiselect and Autocomplete
Maintainers
Readme
Combobox
Angular Select - Lightweight all in one UI Select, Multiselect and Autocomplete
Installation
npm install @ng-matero/ng-select --saveUsage
import { Component } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { NgSelectModule } from '@ng-matero/ng-select';
@Component({
selector: 'your-app',
template: `
<ng-select [items]="cars" bindLabel="name" bindValue="id" [(ngModel)]="selectedCars" />
`,
imports: [FormsModule, NgSelectModule],
})
export class YourAppComponent {
cars = [
{ id: 1, name: 'Volvo' },
{ id: 2, name: 'Saab', disabled: true },
{ id: 3, name: 'Opel' },
{ id: 4, name: 'Audi' },
];
selectedCars = 3;
}License
MIT
