Angular ngrx-store Tutorial - Action, Reducer, Selector

preview_player
Показать описание
ngrx-store is a reactive state management framework for angular. In this video we build a simple example online shop, where the shopping cart is being implemented with ngrx-store. Learn the concept of action, reducer and selector.

(00:00) - Intro
(00:51) - Example Project Setup
(02:19) - Install ngrx-store via npm
(02:23) - Create Actions
(03:05) - Create Reducer
(04:32) - Import and Configure StoreModule
(04:47) - Dispatch Actions
(05:14) - Create Selectors
(06:06) - Select and Observe
(06:49) - Testing
(07:05) - One More (Complex) Selector
(07:37) - Store State in Local Storage with Meta Reducer
(08:50) - End
Рекомендации по теме
Комментарии
Автор

Great tutorial, a tip I would give is change the video name or qdd a tag like "Crash course ngrx store" will get more reach 😀

jakeblue
Автор

This is the most helpful and well made video on the topic I've found, thank you

dreb.
Автор

Really nice and explanatory video. In a very short video, it clears a lot of concepts. Thanks a lot for uploading these videos.

yogeshya
Автор

Thank you for the tutorial, this is the most simple but exact explain that I found :)

JayJoowon
Автор

Thank you Genka. I found your source codes. It is so helpful

haoxinzhang
Автор

Very useful video, thanks a lot! Can u make video about effects? I dont understand how to work with them =(

volumecore
Автор

where can I download your source codes? Thank you so much!!

haoxinzhang
Автор

pls create tutorial in Udemy, I will definitely buy your course. Or if you already have full tutorial on Angular pls let us know :)

unknownuser-nblx
Автор

Why didn't you use the spread operator instead of stringifying the array and parsing it back on the reducers? That made me completely confuse

neogsantos
Автор

I would advise not making a deep copy in this manner as you've managed to overly complicate this instead of doing it in one line. You can use the spread operator to create a brand new array with the product inside:

on(addProduct, (entires, product) => [...entries, product]),
etc.

danielsottilemusic-official