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

Add Angular bindings #1175

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

alexonaci
Copy link

@alexonaci alexonaci commented Apr 19, 2024

Very much Work in Progress

  • Added the bindings under client/typescript/frameworks with own package.json and tsconfig.json to comply with the Angular Package Format: https://angular.io/guide/angular-package-format
  • Excluded the angular sources from tsup build because they require a different compilation - using the angular compiler and ng-packagr
  • Added example project under examples/web-wa-sqlite-angular
  • The goal is to have signal-based bindings for the electricClient and to have maybe a similar structure with the TanStack Query Angular adapter: https://tanstack.com/query/v5/docs/framework/angular/overview, https://github.com/TanStack/query/tree/main/packages/angular-query-experimental/src - although is not quite idiomatic for the Angular ecosystem (yet) to have custom inject functions (like injectLiveQuery or injectConnectivityState) they seem to fit well in the current structure and I think they would improve the developer experience. But please let me know what you think

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

1 participant