🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

angular-base-service

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-base-service

## Installation

1.5.1
latest
73

Supply Chain Security

100

Vulnerability

88

Quality

76

Maintenance

100

License

Unpopular package

Quality

This package is not very popular.

Found 1 instance in 1 package

Version published
Weekly downloads
16
700%
Maintainers
1
Weekly downloads
 
Created

angular-base-service

Installation

To install this library, run:

$ npm install angular-base-service --save

Consuming your library

Once you have published your library to npm, you can import the library AppModule:

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';

// Import your library
import { NgBaseServiceModule } from 'angular-base-service';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,

    // Specify your library as an import
    NgBaseServiceModule.forRoot({
      // will be prepended to all http calls, defaults to ''
      baseServiceUrl: 'https://baseUrl.com',
      // will be sent with all http calls headers as `token:mySecretKey`,
      // unless specified in the `request` object, which takes precedence
      baseServiceKey: 'mySecretKey',
    })
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Once your library is imported, refer to the base-test.service.ts file for an example of how to use it, and test it

Development

To generate all *.js, *.d.ts and *.metadata.json files:

$ npm run build

To lint all *.ts files:

$ npm run lint

License

MIT © Mark Massoud

Keywords

FAQs

Package last updated on 04 Dec 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