ngx-token-auth
TypeScript icon, indicating that this package has built-in type declarations

0.3.1 • Public • Published

ngx-token-auth

Installation

To install this library, run:

$ npm install ngx-token-auth --save

Consuming your library

Once you have published your library to npm, you can import your library in any Angular application by running:

$ npm install ngx-token-auth

and then from your Angular AppModule:

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
 
import { AppComponent } from './app.component';
 
// Import your library
import { TokenAuthModule } from 'ngx-token-auth';
 
@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
 
    // Specify your library as an import
    TokenAuthModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Development

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

$ npm run build

To lint all *.ts files:

$ npm run lint

License

MIT © Jakub Kruczek

Readme

Keywords

Package Sidebar

Install

npm i ngx-token-auth

Weekly Downloads

1

Version

0.3.1

License

MIT

Unpacked Size

37.2 kB

Total Files

12

Last publish

Collaborators

  • boostcom