1.4.9 • Published 7 years ago

@promots/generic-client v1.4.9

Weekly downloads
1
License
MIT
Repository
bitbucket
Last release
7 years ago

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

1.4.9

7 years ago

1.4.8

7 years ago

1.4.7

7 years ago

1.4.6

7 years ago

1.4.5

7 years ago

1.4.4

7 years ago

1.4.3

7 years ago

1.4.2

7 years ago

1.4.1

7 years ago

1.4.0

7 years ago

1.3.9

7 years ago

1.3.8

7 years ago

1.3.7

7 years ago

1.3.6

7 years ago

1.3.5

7 years ago

1.3.4

7 years ago

1.3.3

7 years ago

1.3.2

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.9

7 years ago

1.2.8

7 years ago

1.2.7

7 years ago

1.2.6

7 years ago

1.2.5

7 years ago

1.2.4

7 years ago

1.2.3

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

2.0.0

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

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