-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to support ng 19 #96
base: master
Are you sure you want to change the base?
Conversation
Chibuzor27
commented
Dec 10, 2024
- Update package version
- Update demo app to angular version 19
- Update directives and component to standalone
- Move declarations to import in Paystack module
- Update 'ngClass' and 'ngStyle' to 'class' and 'style' respectively in Paystack component
- Fix no-reflecting class attribute on directive
- Fix typo in error message in Paystack service
- Add style for Paystack buttons in demo app
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for submitting this PR!
@@ -10,7 +10,8 @@ declare var window: Partial<MyWindow>; | |||
@Component({ | |||
selector: 'angular4-paystack-embed', | |||
changeDetection: ChangeDetectionStrategy.OnPush, | |||
template: `<div id="paystackEmbedContainer"></div>` | |||
template: `<div id="paystackEmbedContainer"></div>`, | |||
standalone: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The library support angular from v8-17 (now 19). This would cause older projects to break
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tested changes with angular 16 and 17, and it seems to work pretty well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should take this out