Kartların üzerine tıklanıldığında da işin; yapıldı, yapılmadı durumu (State ) değişecek. Görüldüğü üzere React kütüphanesi yazdığımız kodu bizim için oldukça anlamlı hale getiriyor. Props , oluşturduğumuz component’lerin özelliklerini tutarken, State ise sayfanın ya da bir componentin durumunu tutuyor.
Read moreWhat is a reducer NgRx?
Reducers in NgRx are responsible for handling transitions from one state to the next state in your application . Reducer functions handle these transitions by determining which actions to handle based on the type.
Read moreHow do I use NgRx?
Finally, the Coding
Read moreWhy do we need NgRx store?
To me Ngrx store solves multiple issues . For example when you have to deal with observables and when responsability for some observable data is shared between different components. In this case store actions and reducer ensure that data modifications will always be performed “the right way”.
Read moreWhy do we use NgRx?
Inspired by Redux, NgRx provides a way to maintain data in your Angular application as a single source of truth . NgRx uses streams to interact with a data store. This data store connects to your components and services, and ultimately simplifies the entire process of data management in your Angular application.
Read moreWhat is NgRx in react?
NgRx Store provides reactive state management for Angular apps inspired by Redux . Unify the events in your application and derive state using RxJS.
Read moreHow can I learn NgRx?
These are the steps that I follow while building an Angular project architecture.
Read more