Socket
Socket
Sign inDemoInstall

@ng-select/ng-option-highlight

Package Overview
Dependencies
5
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @ng-select/ng-option-highlight

### Step 1: Install `ng-option-highlight`:


Version published
Weekly downloads
18K
decreased by-18.15%
Maintainers
2
Install size
166 kB
Created
Weekly downloads
 

Readme

Source

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.

FAQs

Last updated on 10 Jan 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc