cloud-scan
v0.3.2
Published
## Importing cloud-scan into host app: This project is dependent on `axios` and `ng-bootstrap`.
Downloads
45
Readme
CloudScan
Importing cloud-scan into host app:
This project is dependent on axios
and ng-bootstrap
.
npm i axios
npm i @ng-bootstrap/ng-bootstrap
npm i cloud-scan
Import CloudScanRootModule into app.module.ts:
Example:
import { CloudScanRootModule } from 'cloud-scan';
@NgModule({
declarations: [
HostAppComponent,
UserInfoComponent,
NavbarComponent,
],
imports: [
BrowserModule,
CloudScanRootModule
],
providers: [],
bootstrap: [
HostAppComponent,
CloudScanRootModule
]
})
To import icons and barcode assets, add highlighted section to angular.json file in the assets arrays:
Example:
"assets": [
"src/favicon.ico",
"src/assets",
{
"glob": "*",
"input": "node_modules/cloud-scan/src/assets",
"output": "assets"
}
],
Add into HTML file:
To have it span the screen or any container just import into html file:
<app-cloud-scan-root></app-cloud-scan-root>
To use our card styling:
<div class="cloud-scan-card">
<app-cloud-scan-root></app-cloud-scan-root>
</div>
Update Host:
npm i [email protected]
(or whatever current version is)