Puas yog NGRX redux?
Puas yog NGRX redux?

Video: Puas yog NGRX redux?

Video: Puas yog NGRX redux?
Video: "Puag Yoj Mas" [OFFICIAL MUSIC VIDEO] - KT Killing Em 2024, Kaum ib hlis
Anonim

NGRX yog ib pawg tsev qiv ntawv "inspired" los ntawm cov Redux qauv uas nyob rau hauv lem yog "inspired" los ntawm tus qauv Flux. Ua me ntsis ntxiv, qhov no txhais tau tias redux qauv yog ib qho yooj yim version ntawm Flux qauv thiab NGRX yog angular/rxjs version of the redux qauv.

Kuj paub, kuv puas xav tau NgRx?

Yog koj tsis paub meej tias koj xav tau nws, koj tsis ua xav tau nws. Rau kuv Ngrx khw daws teeb meem ntau yam. Piv txwv li thaum koj yuav tsum tau soj ntsuam nrog observables thiab thaum lub luag hauj lwm rau ib co observable cov ntaub ntawv yog qhia ntawm txawv Cheebtsam. Nws ua haujlwm zoo thaum koj tab tom soj ntsuam cov ntaub ntawv tas li.

Ib yam li ntawd, Redux puas tsim nyog rau angular? Tsis yog tsim nyog , tab sis nws tuaj yeem siv tau. Rau ib daim ntawv thov loj nrog ntau cov ntaub ntawv txav mus los lossis raug hloov kho los ntawm tej zaum muaj ntau yam khoom, lub hauv paus khw thiab qee qhov kev siv Flux yog qhov tseem ceeb heev (nws tsis tas yuav yog Redux ).

Tsuas yog li ntawd, kev siv NgRx yog dab tsi?

NgRx yog ib lub hauv paus rau kev tsim cov ntawv thov reactive hauv Angular. NgRx muab kev tswj hwm lub xeev, kev sib cais ntawm cov kev mob tshwm sim, kev tswj hwm qhov chaw sau, kev khi lub router, tsim cov cai, thiab cov cuab yeej tsim tawm uas txhim kho cov neeg tsim khoom kev paub thaum tsim ntau hom kev siv.

Dab tsi yog redux qauv hauv angular?

Redux yog a qauv / tsev qiv ntawv los ntawm React ntiaj teb uas tau tshoov siab nrov Angular cov cuab yeej zoo li NgRx thiab NGXS. Lub hom phiaj ntawm redux yog ua kom cov ntaub ntawv thov kev kwv yees ntau dua los ntawm kev tsim cov ntaub ntawv ib-txoj kev ntws. Peb lub khw muag khoom tsuas yog muaj ob lub zog, ob qho tib si ntawm cov ntaub ntawv reactive - kev ua thiab xeev.

Pom zoo: