简体   繁体   中英

Angular is Based on Event Driven or Data Driven Model

Angular is based on Event Driven or Data Driven Model.

using of ngRx follows which pattern data driven or event driven.

I think it really depends on your implementation.

If your implementation is based on CRUD, I guess you say it is data driven as any http requests will mutate state data that will eventually trigger UI update.

However, if your overall system is implemented in for example SignalR based architecture, then coming SignalR event shall dispatch ngrx actions with a playload to be able to mutate state. In this case, I guess you can say it is an event driven model.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM