
Security News
Deno 2.4 Brings Back deno bundle, Improves Dependency Management and Observability
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
ngx-text-highlight
Advanced tools
Angular Directive to highlight the text.
Live Demo : https://mraghuram3.github.io/#/ngx-text-highlight
Install it with npm
$ npm install ngx-text-highlight --save
Import NgHighlightModule
in the root module
import { NgHighlightModule } from 'ngx-text-highlight';
@NgModule({
imports: [
// ...
NgHighlightModule,
...
]
})
In your template
<div ngxTextHighlight [content]="actualText" [searchTerm]="searchText" [caseSensitive]="true">
</div>
[content]: string.
the content in which the text needs to be highlighted.
[searchTerm]: string.
The string which needs to be highlighted.
[caseSensitive]: boolean.
Toggle between case sensitive and case insensitive search, default false
.
** Include the css provided in your index.html or create a css class as shown below as per your requirement **
.ngx-text-highlight{
background:yellow;
}
To increase performance, the ngx-text-highlight is updated to a directive instead of component.
MIT © Raghu Ram M
FAQs
## Installation Angular Text highlight Directive ====
The npm package ngx-text-highlight receives a total of 79 weekly downloads. As such, ngx-text-highlight popularity was classified as not popular.
We found that ngx-text-highlight demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.