New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

ng-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

ng-highlight

Angular 2+ HighlightJS Directive

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

HighlightJS Directive For Angular2+

Install

    npm install ng-highlight

Usage

Add any theme (css) from highlight.js to your index.html file.

E.g.

    <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css">

Then:

app.module.ts

    ...
    import { HighlightDirective } from 'ng-highlight'

    @NgModule({
         declarations: [
             ...,
             HighlightDirective
         ],
         ...
    })
    export class AppModule { }

app.component.html

    <pre><code appHighlight class="lang-...">{{...}}</code></pre>

Keywords

angular

FAQs

Package last updated on 09 Jun 2017

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