Questions tagged [ember.js-2]

For issues relating to development with Ember.js, version 2.0.

At Aug 2015, Ember.js version 2.0 is released.

New features and removed api's are listed in changelogs:

67 questions
2
votes
1 answer

How to get session data created by Auth0 in Ember.js 2.3

I am using Ember.js 2.3 (and Ember-Data 2.3). I'm setting up a simple user auth process using Auth0. Nothing fancy yet, just installed Auth0 according to: https://auth0.com/docs/quickstart/spa/ember2js/no-api Now, my setup is pretty much exactly the…
Darshan
  • 937
  • 3
  • 15
  • 27
1
vote
1 answer

Unknown Global Errors when upgrading Ember

when upgrading Ember 2.11 to 2.18 I got alot of Unknown Global errors: Ember.Inflector Unknown Global Global: Ember.Inflector Location: app\routes\base-mt.js at line 17 i18n: Ember.inject.service(), searchFilter:…
Men X
  • 153
  • 1
  • 2
  • 8
1
vote
2 answers

Asynchronously loading translations with ember-intl

I'm trying to achieve asynchronous fetching of translations. I set up the publicOnly to true as docs say: // config/ember-intl.js module.exports = function() { return { publicOnly: true } }; Skipped the step of setting up the locales key,…
1
vote
3 answers

How to dry route actions with component in EmberJS

(EmberJS 2.14) I want to have DRY apps with ember, however, it seems it is impossible to do with route actions. When I try to use a component for the button triggering the action it fails : new.js : export default Ember.Route.extend({ …
Syl
  • 3,719
  • 6
  • 35
  • 59
1
vote
1 answer

How application route getting triggered in emberjs

I am a newbie in emberjs and trying to understand an ongoing ember codebase. I see that application.js router and controller are getting executed by default in our project without mentioning it anywhere in router file. But ember cli is not…
Prats
  • 1,745
  • 4
  • 24
  • 28
1
vote
1 answer

Ember: Edit model object without setting isdirty

This topic har been discussed on stackoverflow before, but not with latest version of ember data, I think. At least none of the suggestions I have found have worked for me. I use the latest version of Ember and Ember data (versjon 2.13.0). I use the…
Vilhelm H.
  • 1,315
  • 1
  • 7
  • 15
1
vote
2 answers

Passing parameters between routes in Ember 2.x

While going from one route to another, I want to pass some data (especcially arrays). How is it possible? Why can't we use query-params with arrays? Is it a problem storing data in a specific service during transition? Note: I know there are some…
ykaragol
  • 6,139
  • 3
  • 29
  • 56
1
vote
1 answer

Ember Where to place data for common code like notification, user profile on navbar

I have writing a common navigation for my ember application. I have place my outlet tag inside navigation in application.hbs. Now I want to pass some dynamic data to my navbar, how should I do it. I see there is nothing as ApplicationController in…
Prateek
  • 342
  • 1
  • 3
  • 15
1
vote
1 answer

Ember 2.0 Controllers or Just Components...?

I have read that Ember2 is attempting to remove controllers. I was even linked to this RFC https://github.com/ef4/rfcs/blob/routeable-components/active/0000-routeable-components.md. However, I have been following the tutorial, and they insist on…
Taztingo
  • 1,915
  • 2
  • 27
  • 42
1
vote
1 answer

Sparse Fieldsets or Reload from Component, for Ember Data 2.0+

We're working on a charting application that, for performance reasons, needs a way to split the chart data from some meta data to render charts to select from. It doesn't appear that Ember-data (currently v2.5.0) supports JSONAPI's Sparse Fieldsets.…
toobulkeh
  • 1,618
  • 1
  • 14
  • 22
1
vote
2 answers

Formatting Data for Ember Charts.

Im using ember-charts for an app to present multiple different charts from the same models. Ember-charts takes data formatted in a specific way; an array of objects like in the code below. I have been using computed properties to format the data to…
Craicerjack
  • 6,203
  • 2
  • 31
  • 39
1
vote
1 answer

ember adapter url - find by id pattern - nested api resources

I've got an api with specific url structure. How do I pass the ID to the url string using an adapter or something? There's only one model, patient but I need to query each of these items plus more. I've seen where you can place the id at the end of…
michael
  • 686
  • 2
  • 11
  • 21
1
vote
2 answers

Ember.js 2.3 implement @each.property observer on a HasMany relationship?

Say I have a hasMany relationship Procedure => hasMany Steps, with async:true, and I have a Procedure Component (on the procedure route) called procedure-main, which lists the steps as so: {{#each steps as |step| }} {{step.title}} {{/each}} I need…
Darshan
  • 937
  • 3
  • 15
  • 27
1
vote
1 answer

in Ember.js 2.3, how do I compile a hasMany async call into one call in ember instead of several?

I'm upgrading to ember-cli and ember 2.3. Say I have a model called User and a model called Post , and a user ... posts: DS.hasMany('post', {async:true}) Now, this works the way I expect it to, lazily loading data and not loading posts unless it…
Darshan
  • 937
  • 3
  • 15
  • 27
1
vote
1 answer

Ember js 2.0 passing computed property from controller to component

I am using Ember 2.3. Like the title says I am trying to pass a computed property from my controller to my component. I don't know what I am doing incorrectly but it is not working for me. This is what I am doing: In my controller: import Ember from…
TheMethod
  • 2,893
  • 9
  • 41
  • 72