@trimble-oss/moduswebcomponents-angular
v1.0.4-ng19
Published
Trimble Modus Angular Component Library
Maintainers
Keywords
Readme
Modus Angular Components: moduswebcomponents-angular
This library was generated with Angular CLI version 19.0.0.
The components in this library were programmatically generated using the StencilJS Angular Framework Integration.
Installation
Install the Modus Angular Components Library and its Modus Web Component peer dependency
npm install @trimble-oss/moduswebcomponents @trimble-oss/moduswebcomponents-angularAdd the following snippet to your
main.ts(or any main module)import { defineCustomElements } from '@trimble-oss/moduswebcomponents/loader'; defineCustomElements();Add the following snippet to your
app.module.ts(or any app module)import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; @NgModule({ ... schemas: [CUSTOM_ELEMENTS_SCHEMA] })
Example Usage
Use a modus button in your
app.component.html<modus-wc-button color="primary" [disabled]="false">Modus Button</modus-wc-button>
Build
To rebuild the Modus Angular Components you need to perform the following steps:
- From the
./integrations/angular/ng19project directory runnpm installthennpm run build
Referencing a local build of modus-wc
Using npm link
- If you want to reference a local build of
modus-wcyou can runnpm linkfrom themodus-wc-2.0root directory and thennpm link @trimble-oss/moduswebcomponentsfrom theng19directory.
Using npm pack
- You can also run
npm packfrom themodus-wc-2.0root directory and thennpm install path/to/modus-wc-tarball.tgzfromng19directory.
Debugging Locally
To use the Modus Angular components locally for debugging and other purposes:
- From
./ng19project directory runnpm run build - From
./ng19project directory runnpm pack ./dist/trimble-oss/moduswebcomponents-angular- This will generate a tarball of the library:
trimble-cms-modus-wc-angular-0.0.1-ng19.tgz
- This will generate a tarball of the library:
You can now test the build locally with any Angular project by running npm install path/to/trimble-cms-modus-wc-angular-0.0.1-ng19.tgz
and following the installation steps.
