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
Post a Comment