@smartux/xpa-bridge
v4.1000.5-MSJ
Published
This is a bridge between smartux and xpa and provides the required services to execute xpa aplication is SmartUx Studio
Downloads
61
Readme
SmartuxXpaBridge
This library was generated with Angular CLI version 11.0.9.
Code scaffolding
Build
Run ng build xpa-bridge --configuration=production
to build the project. The build artifacts will be stored in the dist/
directory.
Publishing
After building your library with ng build xpa-bridge
, go to the dist folder cd dist/smartux-xpa-bridge
and run npm publish
.
Using the library in host application
In the host application add it as a dependency in packaage.json as : "@smartux/xpa-bridge": "^1.0.0" and do npm i
In app.module.ts , inject the SmartuxXpaBridgeModule and in the provider use the getProvider from the bridge
Changes needed : add import : import { SmartuxXpaBridgeModule, getProvider } from '@smartux/xpa-bridge';
add it to imports [] at the start imports: [ SmartuxXpaBridgeModule, ... ]
Add the provider : providers: [getProvider()],
Note that these is automatically handled when application is generated in template , but for existing application the above steps should be performed manually .
##Debugging the library in host appplicaton When you need to change th library code and debug it , In the host application change the path of the smart-ux-bridge to point to the dist folder of library. i.e add the following code : "paths": { "@smartux/xpa-bridge" : ["../../smartux-xpa-bridge/dist/xpa-bridge"] }