Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70920

Ngrx observable issue

$
0
0

@dram3vlh wrote:

I am using ngrx library in my ionic 2 project. There is an array in state and I am calling it in my page ts file. Here is some samples;

**app-state.ts
export interface AppState{
myArray: any[];
}

**page.ts
items: Observable[];

constructor{
this.items = thiis.store.select(state => state.myArray);
}

What I need to is to get items of items array in page.ts file.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70920

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>