1.4.9 • Published 7 years ago
@promots/generic-client v1.4.9
Installation
npm install @promots/generic-client
Using Authentication service
- Import the AuthenticationService into the component you want to use it:
import { AuthenticationService } from '@promots/generic-client';
- Declare on the variable in the constructor:
constructor(private auth: AuthenticationService) { this.auth = auth}
- 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
- 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], })
- Add
<generic-header [title]="title"></generic-header>
to app.component.html file
Deployment
- Install globally the following packs:
npm install -g angular2-inline-template-style —save
if missingnpm install -g glob --save
if missingnpm 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