Support angular >=18 (#107)

* fix peerDependencies to handle angular >=18
* build(package.json): upgrade angular 18
* refactor(lib): removed renderer2 not used
* docs(readme): add table installation dependencies
This commit is contained in:
Lorenzo Iovino 2024-07-10 05:59:58 +02:00 committed by GitHub
parent 64576c9250
commit da502ed7f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 3403 additions and 3963 deletions

View file

@ -18,11 +18,13 @@ Check out the live demo: [ng2-fittext Demo](https://stackblitz.com/edit/stackbli
## Installation
Install the library using npm:
Install the library using npm according to your angular version (see table below):
| Angular | ng2-fittext | command |
|---------|-------------|-------------------------------|
| <= v17 | 1.4.3 | ```npm i ng2-fittext@1.4.3``` |
| >= v18 | 2.0.0 | ``` npm i ng2-fittext@1.5.0```|
```bash
npm install --save ng2-fittext
```
### Usage