1.2.0 • Published 4 years ago

ngx-fi-lodash v1.2.0

Weekly downloads
20
License
MIT
Repository
github
Last release
4 years ago

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);
    }));
  }));
}));
1.2.0

4 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago