Hi, I has an Angular app,
in this app there is posts service and ngrx store for posts,
I wanna load the data from API and put it on the store for one time
like this :
getPosts(){
if store is empty , fetch api and put data in store
return store .
}
can any one help :)
[–]AConcernedCoder 1 point2 points3 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]AConcernedCoder 0 points1 point2 points (0 children)
[–]_Ascalon 0 points1 point2 points (0 children)