@@CodeWithAhsan I have this problem, I'll appreciate it so much if you can help. I want to use data from the store to display in the chart, specifically, Chartjs. But I can't figure out how to get data in the component (.ts file) from the store, it's only available in the template (.html). How can I get the data in the component after the store has been patched with data? No matter how I do it, the variable from the store only prints the initial value, like if it was 0 or [] empty array, it will print that in the console. This makes it hard to use the store for displaying data in the chart, such as Chartjs chart because the data is not available in the component, only available in the template of the component. Thanks in advance.
Thanks. Not at the moment. The book itself is pretty relevant still with all the recent advancements in Angular. Especially the core of it. Apart from signals, hydration, and a few more concepts
My biggest issue is how to access the data from the store (signalstore) inside the component after the store is already initialized. No matter how I do it, the variable from the store only prints the initial value, like if it was 0 or [] empty array, it will print that in the console. This makes it hard to use the store for displaying data in the chart, such as Chartjs chart because the data is not available in the component, only available in the template of the component. Can anyone help?
Providing in parent component instead of a "root" is better. When we provide it in parent all children would have access to it and will be destroyed when parent is destroyed.
I could follow easily, but yeah for this you need to be focused 100% on the video. So a bit slower would be minimal better for the average person. But really nice tutorial 👍
What is your go-to method for state management? Local observables? Local Signals? Shared Services? NgRx? NgRx Signals?
Great content, thank you so much.
@@MG-wx8yx awesome! I appreciate the feedback. Is there something else you want me to create content on?
@@CodeWithAhsan I have this problem, I'll appreciate it so much if you can help. I want to use data from the store to display in the chart, specifically, Chartjs. But I can't figure out how to get data in the component (.ts file) from the store, it's only available in the template (.html). How can I get the data in the component after the store has been patched with data?
No matter how I do it, the variable from the store only prints the initial value, like if it was 0 or [] empty array, it will print that in the console. This makes it hard to use the store for displaying data in the chart, such as Chartjs chart because the data is not available in the component, only available in the template of the component. Thanks in advance.
@@MG-wx8yx Do you have a public repository I can see the code at?
Great video. Thanks for sharing! Do you have a PDF version of the book that get's updates?
Thanks. Not at the moment.
The book itself is pretty relevant still with all the recent advancements in Angular. Especially the core of it.
Apart from signals, hydration, and a few more concepts
Thank you so much for the video. Clear and simple. What about a video that shows how to handle HTTP requests with signal store? :)
Great suggestion! I’ll look into it
My biggest issue is how to access the data from the store (signalstore) inside the component after the store is already initialized. No matter how I do it, the variable from the store only prints the initial value, like if it was 0 or [] empty array, it will print that in the console. This makes it hard to use the store for displaying data in the chart, such as Chartjs chart because the data is not available in the component, only available in the template of the component. Can anyone help?
This is a valid use case for effect, as it's the end of a reactive chain
Providing in parent component instead of a "root" is better. When we provide it in parent all children would have access to it and will be destroyed when parent is destroyed.
Good point! Yes.
you present the material too quickly - it’s unclear who you’re telling it for
Thank you for the feedback. I will access it for future videos.
I could follow easily, but yeah for this you need to be focused 100% on the video. So a bit slower would be minimal better for the average person. But really nice tutorial 👍
@@eihamsalieba8662 awesome feedback :) I’ll remember in future videos