@promots/generic-client
TypeScript icon, indicating that this package has built-in type declarations

1.4.9 • Public • Published

Installation

npm install @promots/generic-client

Using Authentication service

  1. Import the AuthenticationService into the component you want to use it: import { AuthenticationService } from '@promots/generic-client';
  2. Declare on the variable in the constructor: constructor(private auth: AuthenticationService) { this.auth = auth}
  3. Now, you can use the method getUrlParams() to get the uid and token of the user let urlParams = this.auth.getUrlParams(); Note: the getUrlParams() method return object that contains the uid and the token

Using the Header component

  1. In your app.module.ts: add import { HeaderModule } from '@promots/generic-client'; and then add HeaderModule to the imports list: @NgModule({ declarations: [ AppComponent ... ], imports: [ ... HeaderModule ], providers: [], bootstrap: [AppComponent], })
  2. Add <generic-header [title]="title"></generic-header> to app.component.html file

Deployment

  1. Install globally the following packs: npm install -g angular2-inline-template-style —save **if missing npm install -g glob --save **if missing npm install -g chokidar --save

run npm publish

Readme

Keywords

none

Package Sidebar

Install

npm i @promots/generic-client

Weekly Downloads

0

Version

1.4.9

License

MIT

Last publish

Collaborators

  • promots