15.1.2 • Published 6 months ago

@ng-select/ng-option-highlight v15.1.2

Weekly downloads
14,138
License
MIT
Repository
github
Last release
6 months ago

Getting started

Step 1: Install ng-option-highlight:

NPM

npm install --save @ng-select/ng-option-highlight

YARN

yarn add @ng-select/ng-option-highlight

Step 2: Import the NgOptionHighlightModule:

import { NgSelectModule } from '@ng-select/ng-select';
import { NgOptionHighlightModule } from '@ng-select/ng-option-highlight';

@NgModule({
	declarations: [AppComponent],
	imports: [NgSelectModule, NgOptionHighlightModule],
	bootstrap: [AppComponent],
})
export class AppModule {}

Step 3: Add directive in your template:

<ng-select>
	...
	<ng-template ng-option-tmp let-item="item" let-search="searchTerm">
		<span [ngOptionHighlight]="search">{{item.title}}</span>
	</ng-template>
</ng-select>

Development

Build

Run ng build ng-option-highlight to build the project. The build artifacts will be stored in the dist/ directory.

Publishing

After building your library with ng build ng-option-highlight, go to the dist folder cd dist/ng-option-highlight and run npm publish.

Running unit tests

Run ng test ng-option-highlight to execute the unit tests via Karma.

14.5.4

8 months ago

14.5.5

8 months ago

14.5.6

8 months ago

15.1.1

6 months ago

15.1.2

6 months ago

15.1.0

6 months ago

14.1.0

1 year ago

14.3.0

8 months ago

14.5.0

8 months ago

14.5.1

8 months ago

14.7.0

8 months ago

14.5.2

8 months ago

14.9.0

6 months ago

14.5.3

8 months ago

14.8.1

6 months ago

14.2.7

8 months ago

14.2.8

8 months ago

15.0.2

6 months ago

15.0.0

6 months ago

15.0.1

6 months ago

14.0.0

1 year ago

14.0.1

1 year ago

14.2.0

11 months ago

14.0.2

1 year ago

14.2.1

10 months ago

14.4.0

8 months ago

14.2.2

10 months ago

14.4.1

8 months ago

14.2.3

9 months ago

14.6.0

8 months ago

14.2.4

9 months ago

14.2.5

8 months ago

14.8.0

6 months ago

14.2.6

8 months ago

13.9.1

1 year ago

13.8.2

1 year ago

13.9.0

1 year ago

13.8.0

1 year ago

13.8.1

1 year ago

13.7.2

1 year ago

13.7.1

1 year ago

13.6.0

1 year ago

13.5.1

1 year ago

13.4.2

1 year ago

13.7.0

1 year ago

13.5.2

1 year ago

13.4.0

1 year ago

13.0.4

2 years ago

13.5.0

1 year ago

13.4.1

1 year ago

13.2.0

2 years ago

13.1.1

2 years ago

13.0.2

2 years ago

13.3.0

1 year ago

13.2.1

1 year ago

13.0.3

2 years ago

13.0.0

2 years ago

13.1.0

2 years ago

13.0.1

2 years ago

12.0.5

2 years ago

12.0.6

2 years ago

12.0.3

2 years ago

12.0.4

2 years ago

12.0.0

2 years ago

12.0.1

2 years ago

12.0.2

2 years ago

11.2.0

2 years ago

11.1.1

2 years ago

11.1.2

2 years ago

11.0.0

2 years ago

0.0.7

4 years ago

0.0.6

5 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago