samedi 25 juillet 2020

Saving Check box data in angular without using database

Good day Community,

I have four check-box with values assigned to them. And the project Im working on will have different logged-in users. I would like the data to be shared between the users without hard-coding the values. Is there anyway i can save the values, so that when i reload the page or another user logs into their profile, they can access the check-box data without using a database?

<div *ngIf="data.user.isSeller">
              <div class="checkbox">
                <label><input type="checkbox" (click)="Processing = !Processing" value="Processing" >Processing</label>
              </div>
              <div class="checkbox">
                <label><input type="checkbox"(click)="Shipping = !Shipping" value="Shipping">Shipping</label>
              </div>
              <div class="checkbox">
                <label><input type="checkbox" (click)="Delivered = !Delivered" value="Delivered">Delivered</label>
              </div>
              <div class="checkbox">
                <label><input type="checkbox" (click)="Closed = !Closed" value="Closed" >Delivered and Closed</label>
              </div>

            </div>
            <div *ngIf = "Processing">
            <i class="fa fa-check"> Processing..... <br>
              Your order has been recieved and it is being processed. </i>
          </div>
          <br>
          <div *ngIf = "Shipping">
            <i class="fa fa-check">Shipping</i>
          </div>
          <br>
          <div *ngIf = "Delivered">
            <i class="fa fa-check"> Delivered</i>
          </div>
          <br>
          <div *ngIf = "Closed">
            <i class="fa fa-check">Delivered and Closed</i>
          </div>

Thank you




Aucun commentaire:

Enregistrer un commentaire