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

Pass customer entity to customer detail ? #32

Closed
sam-wheat opened this issue May 20, 2016 · 1 comment
Closed

Pass customer entity to customer detail ? #32

sam-wheat opened this issue May 20, 2016 · 1 comment

Comments

@sam-wheat
Copy link

Firstly, thank you for this outstanding demo. It is really well done and very helpful.
Now, I notice we pass customer id in the query parameter from the customers page. Is it possible to pass (or bind to) the entire customer entity in the detail page since we already retrieved it from the data store?

Regards, Sam

@DanWahlin
Copy link
Owner

Thanks Sam. Glad to hear you found the example useful.

The initial homepage load of customers technically would just pull down a subset of an overall customer's data so we'd normally (in a real app hitting a database) want to then query for all of the customer data to use in the details page. However, assuming that the customer loaded by the initial home view is the same entity used by the details page then it could be stored in a service and then accessed in the customer detail views by calling into the service.

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

No branches or pull requests

2 participants