Socket
Socket
Sign inDemoInstall

ngx-fi-lodash

Package Overview
Dependencies
1
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ngx-fi-lodash

lodash for ngx projects


Version published
Maintainers
1
Install size
52.4 kB
Created

Readme

Source

NgxFiLodash

lodash as ngx-fi-lodash

Installation

  • npm i lodash --save
  • npm i @types/lodash --save-dev
  • npm i ngx-fi-lodash --save

How to use

In a module

import { NgModule } from "@angular/core";
import { NgxFiLodashModule } from "ngx-fi-lodash";

@NgModule({
  imports: [NgxFiLodashModule], // for consumption within the scope of the module
  exports: [NgxFiLodashModule] // if propagation is required
})
export class SomeModule {}

Where required

import { Inject } from "@angular/core";
import { LoDashStatic } from "lodash";
import { LODASH_TOKEN } from "ngx-fi-lodash";

export class SomeClass {
  constructor(@Inject(LODASH_TOKEN) private _: LoDashStatic) {}
}

For testing

import { LoDashStatic } from "lodash";
import { LODASH_TOKEN, NgxFiLodashModule } from "ngx-fi-lodash";

describe('TestingTitle', () => {
  let _: LoDashStatic;
  beforeEach(async(() => {
      TestBed.configureTestingModule({
        imports: [NgxFiLodashModule]
      });

      _ = TestBed.get(LODASH_TOKEN);
    }));
  }));
}));

Keywords

FAQs

Last updated on 07 Apr 2020

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