Socket
Book a DemoInstallSign in
Socket

@leonardssh/ng-option-highlight

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@leonardssh/ng-option-highlight

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

5.0.1
latest
Source
npmnpm
Version published
Weekly downloads
1
-66.67%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 28 May 2022

Did you know?

Socket

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.