I have an external library angular-resize-event
My project was in angular 15 and now i am upgrading it to 18.
After upgrading it to 16. While compiling it give IVY error.
I tried npm i --legacy-peer-deps
too. This package was last updated 2 years ago.
Can i use the same library and upgrade to angular 18, or do i need to switch to any other alternative ?
2
Answers
You can create a directive and use it directly until a new version releases.
HTML:
Working Stackblitz Demo ->
cd test
->npm i
->npm run start
Someone forked the original package "angular-resize-event", to support Angular 16, 17 and 18:
https://www.npmjs.com/package/angular-resize-event-package
The usage is the same as previous package:
(copy from link above):
Only change this:
with