Questions tagged as 'localstorage'

0
answers

Store offline image on ionic storage

Hello, I created an application with a simple user registry and storing in ionic storage, but I would like to know how to store an image to be the user's profile photo My Provider looks like this: import { Injectable } from '@angular/core';...
asked by 16.09.2017 / 04:32
1
answer

Problem getting user data on location ApplicationStorage

I would like to implement a menu "my account" in my project, this menu should show user data such as name, email etc, I am using jwt and the logged user data can be obtained in LocalStorage in this format: {"id":"598a8bc8b9dd44250819a7c4","name...
asked by 12.08.2017 / 23:06
1
answer

ngModel does not change the Toogle of Ionic 2

I have a toogle that enables and disables a function, this already works, what does not work is the state of Toogle in the View, the toogle always stays enabled even with ngmodel = false. code below: View: <ion-toggle [(ngModel)]="Ativ...
asked by 26.06.2017 / 02:56
1
answer

Laravel - Question about localStorage

I am developing a sales system for a college job, when I will make a sale the user selects the product that will sell and the quantity, these items will be displayed in an HTML table and will be stored in the localStorage I made by JQuery. My qu...
asked by 14.06.2017 / 02:33
1
answer

Active menu after refresh with localStorage

I have this code that leaves the menu active and expands. <li class="menu-item"> <a href="#" class"active"> <span>Posts</span> </a> <ul class="sub-menu"> <li><a href="#">Ver Post...
asked by 11.05.2017 / 00:03
1
answer

Validation of form and localstorage

Good evening. I'm two days trying to validate a form that will save the user's user data in the browser's localstorage. I received part of the ready code, the problem is that the form saves the empty data, so anyone can enter just by clicking th...
asked by 14.04.2017 / 05:03
1
answer

How to pick up / drop object in localstorage?

I'm sending a JSON object to localStorage : window.localStorage.setItem('tarefa',aux); And I try to get this object on another controller like this: $scope.tarefa=window.localStorage.getItem('tarefa') However, when displaying on...
asked by 21.03.2017 / 14:49
0
answers

Place as checked checkbox retrieved from LocalStorage

I have a table that each product has the same additions and are chosen from a checkbox. Then I check with this function when refresh which ones were chosen and I put checked but because they have additional with id equal then it is also p...
asked by 03.04.2017 / 18:58
1
answer

Recover data from the localStorage in its given input!

I have a code that dynamically registers the input data in the localStorage. I am trying to recover the data registered in their respective inputs, but without success. This is the code to recover the data, but only retrieve the first data...
asked by 24.02.2017 / 19:34
2
answers

LocalStorage does not save names with an accent?

My ionic app stores user data, such as name, in localStorage. I went to do a test, I logged in with the name of my wife, Flavia, but when I looked at the console in the Resources tab, the name field was null and the id had its user id. I went to...
asked by 17.02.2016 / 18:55