Navigation
This project was generated using Angular CLI version 19.2.0.
Code scaffolding
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
ng generate component component-name
For a complete list of available schematics (such as components, directives, or pipes), run:
ng generate --help
Translation integration
Navigation widgets use the application's configured TranslateService. The
@bimplus/navigation-web custom-element bootstrap configures the HTTP loader and
English fallback automatically; Angular consumers should configure
provideTranslateService at application level.
selected-language can be supplied without localized-strings; the selected
language's bundled dictionary remains available. A non-empty localized-strings
object supplies overrides, merged after the language finishes loading so unrelated
keys are preserved. Empty or omitted dictionaries do not replace loaded translations.
The navigation-web missing-translation handler returns the key without warning while translation requests are in progress. Once loading finishes, genuinely missing keys still produce a console warning. HTTP loader failures retain their own diagnostics.
Building
To build the library, run:
ng build navigation
This command will compile your project, and the build artifacts will be placed in the dist/ directory.
Publishing the Library
Once the project is built, you can publish your library by following these steps:
-
Navigate to the
distdirectory:cd dist/navigation -
Run the
npm publishcommand to publish your library to the npm registry:npm publish
Running unit tests
To execute unit tests with the Karma test runner, use the following command:
ng test
Running end-to-end tests
For end-to-end (e2e) testing, run:
ng e2e
Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
Additional Resources
For more information on using the Angular CLI, including detailed command references, visit the Angular CLI Overview and Command Reference page.