Skip to content

Commit

Permalink
Support angular >=18 (#107)
Browse files Browse the repository at this point in the history
* fix peerDependencies to handle angular >=18
* build(package.json): upgrade angular 18
* refactor(lib): removed renderer2 not used
* docs(readme): add table installation dependencies
  • Loading branch information
Lorenzo Iovino authored Jul 10, 2024
1 parent 64576c9 commit da502ed
Show file tree
Hide file tree
Showing 7 changed files with 3,461 additions and 4,021 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ jobs:
- uses: actions/checkout@v2

- run: npm install
- run: npm run test:headless:singleRun
- run: npm run test:headless:singleRun
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading

0 comments on commit da502ed

Please sign in to comment.