7.0.0-beta.4 • Published 5 years ago
@santech/angular-common v7.0.0-beta.4
@santech/angular-common is a npm module that exports santech common module for angular
Prerequisites
You need to have globally installed:
- node 9.x.x
- npm 5.x.x
- yarn 1.x.x
Development
Install all the dependencies
yarn
Launch tests
yarn test
Build the package
yarn build
Publish the package
npm publish
Require package in your project
npm i @santech/angular-common -S
Import module
import { SantechCommonModule } from '@santech/angular-common';
// or
var SantechCommonModule = require('@santech/angular-common').SantechCommonModule;
// or
var SantechCommonModule = santech.AngularCommon.SantechCommonModule;
Examples
Angular 2
import { Component, Inject, NgModule } from '@angular/core';
import { CONFIG_END_POINTS, SantechCommonModule } from '@santech/angular-common';
import { SantechPlatformModule } from '@santech/angular-platform';
import { Authenticator } from '@santech/common';
@NgModule({
imports: [
SantechPlatformModule.forRoot(),
SantechCommonModule.forRoot({
endPointsProvider: {
provide: CONFIG_END_POINTS,
useValue: {
endPoint: 'endpoint/to/gateway',
wsEndPoint: 'ws://host:port',
},
},
}),
],
declarations: [AppComponent]
})
export class AppModule {}
@Component({
selector: 'app',
template: 'template',
})
export class AppComponent {
constructor(auth: Authenticator) {
// You get an Authenticator
}
}
7.0.0-beta.4
5 years ago
7.0.0-alpha.16
5 years ago
7.0.0-beta.3
5 years ago
7.0.0-alpha.15
5 years ago
7.0.0-beta.2
5 years ago
7.0.0-beta.1
6 years ago
7.0.0-beta.0
6 years ago
7.0.0-alpha.14
6 years ago
7.0.0-alpha.13
6 years ago
7.0.0-alpha.12
6 years ago
7.0.0-alpha.11
6 years ago
7.0.0-alpha.10
6 years ago
7.0.0-alpha.9
6 years ago
7.0.0-alpha.8
6 years ago
7.0.0-alpha.7
6 years ago
7.0.0-alpha.6
6 years ago
7.0.0-alpha.5
6 years ago
7.0.0-alpha.4
6 years ago
7.0.0-alpha.3
6 years ago
7.0.0-alpha.2
6 years ago
7.0.0-alpha.1
6 years ago
7.0.0-alpha.0
6 years ago