@inovex.de/elements-angular
This is the integration layer package for integrating the inovex elements into Angular projects.
Installation
See instructions how to integrate it into your project.
Contributing
Please refer to the top level README at GitHub to see the available script commands.
Adding or Removing Components
Everytime a new component ist added or removed from the @inovex.de/elements
package you must ensure that the following files are written after running the build
command:
src/directives/proxies-list.ts
src/directives/proxies.ts
These files are updated automatically.
This ensures that the component is available for the consumer in the Angular world.
If the component needs a custom value accessor to support the ngModel
directive, please update the following files also:
-
src/public-api
(modify) -
src/ino-elements.module.ts
(modify) -
src/directives/control-value-accesors/ino-COMPONENT-NAME-value-accessor.directive.ts
(create)
Schematics
For a detailed explanation of schematics in Angular, see this guide.
At this moment, ng-add
is the only schematic this library provides.
All the related files are located under /schematics
.
In order to test the functionality of the schematics, we make use of our linking tool yalc
:
- Add a new schematic or make changes to the existing one
- Run
publish:yalc
at the root of this project and select angular - In your consuming project, install yalc and run
yalc link @inovex.de/elements-angular
- Run
ng add @inovex.de/elements-angular
Updating the Angular Integration Layer
This project was generated with Angular CLI version 12.0.0 as an Angular library project. So you can update this project as you would do any other Angular library project.
License
MIT