Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

112
Vistas
Using local storage on Angular

I'm trying to make a simple phonebook using Angular, but I'm struggling with making my "app" store the information inserted to local storage.

Here is what I have so far, so if anyone has time to take a peak, I would appreciate it very much.

https://easyupload.io/m/uk7r3f

about 4 years ago · Santiago Trujillo
3 Respuestas
Responde la pregunta

0

The following snippet accesses the current domain's local Storage object and adds a data item to it using Storage.setItem().

localStorage.setItem('myCat', 'Tom');

The syntax for reading the localStorage item is as follows:

const cat = localStorage.getItem('myCat');

The syntax for removing the localStorage item is as follows:

localStorage.removeItem('myCat');

The syntax for removing all the localStorage items is as follows:

localStorage.clear();

Note: Please refer to the Using the Web Storage API article for a full example.

Source: https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage#example

about 4 years ago · Santiago Trujillo Denunciar

0

you can use setItem, getItem, removeItem methods to perform CRUD operation using localStorage

   localStorage.setItem('key', 'value');

For more information you can follow: Add DATA in localStorage

about 4 years ago · Santiago Trujillo Denunciar

0

localStorage.setItem('key', 'value') = > allows you to store an item in the browser storage

localStorage.getItem('key') = > allows you to read the value for the specified key item from the browser storage. for more information : https://www.journaldunet.fr/web-tech/developpement/1441263-comment-gerer-le-stockage-en-local-dans-la-session-d-un-navigateur-avec-angular/

about 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda