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

feat(astro-angular): add props (inputs) processing #67

Merged
merged 7 commits into from
Aug 30, 2022

Conversation

nartc
Copy link
Member

@nartc nartc commented Aug 30, 2022

  • client: using ComponentRef#setInput
  • server: using BEFORE_APP_INITIALIZED hook to run setInput
  • add astro-app to test Astro integration

Still need to add some sort of tests for this feature. Any suggestions on how we'd want to test this?

ISSUE: #60

Chau Tran added 4 commits August 31, 2022 00:26
- client: using `ComponentRef#setInput`
- server: using `InjectionToken` with `providers` to pass static props to rendered Component via DI
- add `astro-app` to test Astro integration

ISSUE: analogjs#60
@brandonroberts
Copy link
Member

brandonroberts commented Aug 30, 2022

Some e2e smoke tests for the astro-app works for now. I'm not sure what the testing story is for integrations. I didn't find any in the source code for official Astro ones yet.

Copy link
Member

@brandonroberts brandonroberts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🪄

package.json Show resolved Hide resolved
packages/astro-angular/src/client.ts Outdated Show resolved Hide resolved
packages/astro-angular/src/client.ts Outdated Show resolved Hide resolved
packages/astro-angular/src/server.ts Show resolved Hide resolved
packages/astro-angular/src/server.ts Show resolved Hide resolved
packages/astro-angular/src/server.ts Show resolved Hide resolved
packages/astro-angular/src/server.ts Outdated Show resolved Hide resolved
@nartc nartc requested a review from brandonroberts August 30, 2022 19:47
@nartc nartc marked this pull request as ready for review August 30, 2022 19:48
Copy link
Member

@brandonroberts brandonroberts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@brandonroberts brandonroberts merged commit 2503e19 into analogjs:main Aug 30, 2022
@brandonroberts
Copy link
Member

Thanks! @allcontributors add @nartc for code, infra

@allcontributors
Copy link
Contributor

@brandonroberts

I've put up a pull request to add @nartc! 🎉

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.

2 participants