Questions tagged [ember-local-storage]

9 questions
5
votes
1 answer

How to enable LocalStorage in QML WebView for Android?

I am building webview-based Qt app for Android, which talks to Emberjs. However, it seems that QML WebView does not support LocalStorage (but supports SessionStorage). Are there any way to enable it? Or may you help me find a line in the…
lesyk
  • 3,979
  • 3
  • 25
  • 39
1
vote
1 answer

Ember-data: Create a record if one does not exist?

I have a computed property where I'm attempting to create a record if one does not exist, but keep getting a jQuery.Deferred exception when attempting to render the computed property. Here's what I have so far: deadlineDay: computed(function() { …
kjb
  • 3,035
  • 3
  • 23
  • 30
1
vote
1 answer

Ember component: computed property observing local storage array

I'm somewhat at a loss with what should be easily achieved with Ember computed properties. I'm using https://github.com/funkensturm/ember-local-storage to manage a local favorites list. Now I have a component which should display the object's…
1
vote
1 answer

If you pass more than one argument to the each helper, it must be in the form #each foo in bar

I'm using Ember 1.10.0, Ember Data beta 14.1, and Ember LocalStorage Adapter 0.5.1. I have a template:

Dracula's blog

    {{#each post in model}}
  • {{#link-to 'post' post}}{{post.title}}{{/link-to}}
michael
  • 2,977
  • 3
  • 20
  • 26
0
votes
1 answer

ember local storage adapter: how to get data and work on it

I use Ember in combination with Electron. As the user can define some settings for the app, I thought it was a elegant idea to store the settings data in local storage. For that I use ember-local-storage adapter. Storing, deleting and displaying…
HS_hendrix
  • 79
  • 1
  • 8
0
votes
1 answer

Why is ember-data 2.7.0 normalizeHelper expecting a JSON API response from my custom adapter?

I have an ember-cli project which uses JSONAPI adapter, via adapters/application.js. I want to add a model class that should use the ember-localstorage-adapter. I declare the model and the respective adapter and serializer: models/widget.js import…
Remus Rusanu
  • 288,378
  • 40
  • 442
  • 569
0
votes
0 answers

Ember clear records between acceptance tests using Local Storage adapter

I am writing some acceptance tests for my Ember app and I don't know the best way to remove records created in localStorage between tests. I also don't want to lose any localStorage records I have created in my development environment. I am…
0
votes
0 answers

Deal with associations using ember-cli and ember-localstorage-adapter

Maybe it's a stupid question but I am in the middle (hopefully) of the ember learning curve. My application uses ember-localstorage-adapter and some of my models has associations. After saving few records, the ember inspector show me that all…
masciugo
  • 1,113
  • 11
  • 19
0
votes
0 answers

Is it a good idea to store json objects in local storage?

I've seen some sites store JSON objects in local storage. Is this practice common with ember-cli apps as well? For example: the currentUser local storage key could have: {"firstName": "foo", "lastName": "bar", "email": "foo@bar.com"} Which can be…