@ng-matero/ng-select 0.4.1 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,7 +1,41 @@
1
1
  # Combobox
2
2
 
3
+ [![npm](https://img.shields.io/npm/v/@ng-matero/ng-select.svg)](https://www.npmjs.com/package/@ng-matero/ng-select)
4
+ [![license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/ng-matero/combobox/blob/main/LICENSE)
5
+
3
6
  Angular Select - Lightweight all in one UI Select, Multiselect and Autocomplete
4
7
 
8
+ ## Installation
9
+
10
+ ```bash
11
+ npm install @ng-matero/ng-select --save
12
+ ```
13
+
14
+ ## Usage
15
+
16
+ ```ts
17
+ import { Component } from '@angular/core';
18
+ import { FormsModule } from '@angular/forms';
19
+ import { NgSelectModule } from '@ng-matero/ng-select';
20
+
21
+ @Component({
22
+ selector: 'your-app',
23
+ template: `
24
+ <ng-select [items]="cars" bindLabel="name" bindValue="id" [(ngModel)]="selectedCars" />
25
+ `,
26
+ imports: [FormsModule, NgSelectModule],
27
+ })
28
+ export class YourAppComponent {
29
+ cars = [
30
+ { id: 1, name: 'Volvo' },
31
+ { id: 2, name: 'Saab', disabled: true },
32
+ { id: 3, name: 'Opel' },
33
+ { id: 4, name: 'Audi' },
34
+ ];
35
+ selectedCars = 3;
36
+ }
37
+ ```
38
+
5
39
  ## License
6
40
 
7
41
  MIT