Skip to content
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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

Chibuzor27
Copy link

  • 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

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Copy link
Owner

@ashinzekene ashinzekene left a 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
Copy link
Owner

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

Copy link
Author

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.

Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants