1.1.41 • Published 7 years ago
hostme-sdk-angular2-mobile v1.1.41
hostme-sdk-angular2-mobile
Building
To build an compile the typescript sources to javascript use:
npm install
npm run build
publishing
First build the package than run npm publish
consuming
navigate to the folder of your consuming project and run one of next commando's.
published:
npm install hostme-sdk-angular2-mobile --save
unPublished (not recommended):
npm install PATH_TO_GENERATED_PACKAGE --save
In your angular2 project:
TODO: paste example.
Set service base path
If different than the generated base path, during app bootstrap, you can provide the base path to your service.
import { Configuration } from 'hostme-sdk-angular2-admin';
const configurationFactory = () => { return new Configuration('https://your-web-service.com'); };
bootstrap(AppComponent, [
{ provide: Configuration, useFactory: configurationFactory },
]);