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

@rebolon/ngx-dummy

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

@rebolon/ngx-dummy

This dummy library is only for example for this issue : https://stackoverflow.com/questions/78188272/angular-libraries-that-expose-a-service-requiring-environment-error-error-ng0

latest
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

@rebolon/ngx-dummy

This dummy library is only for example for this issue : https://stackoverflow.com/questions/78188272/angular-libraries-that-expose-a-service-requiring-environment-error-error-ng0

installation

npm install @rebolon/ngx-dummy

usage

  • you can setup your dummy content in your environments files. Just add a dummy property to your environment and add a list of key/value like this :
{
  dummy: {
    "title": "hello",
    "content": "world",
  }
}
  • in your module inject environment like this :
import { environment } from 'PATH_TO/environment.ts'

...
providers: [
  {
    provide: NG_DUMMY_ENVIRONMENT_TOKEN,
    useValue: environment
  }
]
  • or in your bootstrap file (or components) if you are in Standalone application, like this :
providers: [
  {
    provide: NG_DUMMY_ENVIRONMENT_TOKEN,
    useValue: environment
  },
  NgDummyService,
],

FAQs

Package last updated on 20 Mar 2024

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