I am creating an application but I need that the objects that are inside an array are not lost if the page is reloaded, I do not know if it is possible through an angle service, or through some function.
Thanks and Regards
I am creating an application but I need that the objects that are inside an array are not lost if the page is reloaded, I do not know if it is possible through an angle service, or through some function.
Thanks and Regards
You could work with localstorage
(JS-Native):
localStorage.setItem('miGato', 'Juan');
Or use a package for angular, ex:
angularjs
: angular-local-storage
angular
: angular-localstorage4