Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49083

Question Regarding local storage

$
0
0

After a long time, I visited this forum hope all developer is absolutely fine in this pandemic situation. I have faced some issues regarding local storage issues I have a filter list please can you tell me how can I save this filter in local storage my filter looks like this

.html

<mat-chip color="accent" selected *ngFor="let filtrst of tempFilterStorage; let i=index">

  {{columnsName[filtrst.colId] | titlecase}} {{filtrst.searchCond}} {{filtrst.searchVal}}

  <div class="chip-close">

    <i class="icon-close-1" (click)="removeFilter(i)"></i>

  </div>

</mat-chip>

.ts
const obj: any = {

  tableId: this.tableId,

  colId: this.fieldName,

  searchCond: oprtr,

  searchVal: this.fieldValue,

};

console.log(obj);

this.tempFilterStorage.push(obj);

now i want to save this filter alone with a name

help me guys
Thanks

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 49083

Trending Articles



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