kritzel-angular 0.0.36 → 0.0.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +33 -24
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,24 +1,33 @@
1
- # Lib
2
-
3
- This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.3.0.
4
-
5
- ## Code scaffolding
6
-
7
- Run `ng generate component component-name --project lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project lib`.
8
- > Note: Don't forget to add `--project lib` or else it will be added to the default project in your `angular.json` file.
9
-
10
- ## Build
11
-
12
- Run `ng build lib` to build the project. The build artifacts will be stored in the `dist/` directory.
13
-
14
- ## Publishing
15
-
16
- After building your library with `ng build lib`, go to the dist folder `cd dist/lib` and run `npm publish`.
17
-
18
- ## Running unit tests
19
-
20
- Run `ng test lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
-
22
- ## Further help
23
-
24
- 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.
1
+ # Setup
2
+ Install the kritzel-angular package
3
+ ```
4
+ npm i kritzel-angular
5
+ ```
6
+
7
+ Add LibModule to the providers array in your app.config.ts
8
+ ```typescript
9
+ import { LibModule } from 'kritzel-angular';
10
+
11
+ export const appConfig: ApplicationConfig = {
12
+ providers: [
13
+ importProvidersFrom(LibModule.forRoot())
14
+ ]
15
+ };
16
+ ```
17
+
18
+ Include the LibModule into the imports array of your component to use Kritzel components in you template.
19
+
20
+ ```typescript
21
+ import { LibModule } from 'kritzel-angular';
22
+
23
+ @Component({
24
+ selector: 'my-component',
25
+ standalone: true,
26
+ imports: [LibModule],
27
+ template: `
28
+ <my-list></my-list>
29
+ `,
30
+ })
31
+ export class MyComponent {
32
+ }
33
+ ```
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "kritzel-angular",
3
- "version": "0.0.36",
3
+ "version": "0.0.37",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.2.10",
6
6
  "@angular/core": "^18.2.10",
7
- "kritzel-stencil": "^0.0.16"
7
+ "kritzel-stencil": "^0.0.37"
8
8
  },
9
9
  "dependencies": {
10
10
  "tslib": "^2.3.0"