ionic2 - How to reverse observable list in real time Angular 2 -


i have problem when want reverse observable list after adding new item

i used way reverse during first start

import { pipe, pipetransform } '@angular/core';  @pipe({ name: 'reverse' })  export class reversepipe implements pipetransform {    transform (value) {     if(!value)return;     return value.reverse();   } } 

in html

<div *ngfor="let msg of (msgslist | async) | reverse"> 

but after adding new item, list shown picture [ list after adding ]

also checked link [ is possible reverse firebase list? ] same results


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -