ivy-universal
ivy-universal copied to clipboard
How do I inject HttpClient in this project?
You do not :) One of the newer ideas is to make your data dependencies declarative so that the system can fetch the data before the component is bootstrapped. This let's the component rehydrate properly where the server left off.
Search for @InitialData on how we ate thinking about this.
@vikerman that makes sense for the initial data, but any other API call to update or delete, still will require us to use fetch later. HttpClient is a great Angular Module with interceptors and other capabilities. I would love to see how you would be using it in this repo