fluid-library
v1.0.4
Published
A description of FLUID library
Downloads
13
Maintainers
Readme
FLUID Library
This library was generated with Angular CLI version 16.0.0.
This is a description of what FLUID Angular library does.
Installation
To install this library, use npm:
npm install fluid-library
import { FLUIDLibraryModule } from 'fluid-library';
then add here
imports: [
FLUIDLibraryModule
],
then use
import { FluidServiceService } from 'fluid-library'; in your component
message: string | undefined;
constructor(private myService: FluidServiceService) { }
ngOnInit() {
this.message = this.myService.getMessage();
}
use use <lib-my-library></lib-my-library> in component html
<p>{{ message }}</p>
## Code scaffolding
Run `ng generate component component-name --project my-library` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project my-library`.
> Note: Don't forget to add `--project my-library` or else it will be added to the default project in your `angular.json` file.
## Build
Run `ng build my-library` to build the project. The build artifacts will be stored in the `dist/` directory.
## Publishing
After building your library with `ng build my-library`, go to the dist folder `cd dist/my-library` and run `npm publish`.
## Running unit tests
Run `ng test my-library` to execute the unit tests via [Karma](https://karma-runner.github.io).
## Further help
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.