1.5.1 • Published 6 years ago

angular-base-service v1.5.1

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

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

1.5.1

6 years ago

1.5.0

6 years ago

1.4.2

7 years ago

1.4.1

7 years ago

1.4.0

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago