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
0
votes
0 answers

Ember 2.0 get another router from router/controller

Is there any way to call route action from another router/controller? Let's say I have two routes: App.RouteOne = Ember.Object.extend({ actions: { someCommonFunctionality: function() { // ... } } }); App.RouteTwo =…
Maksim Luzik
  • 5,863
  • 4
  • 36
  • 57
0
votes
1 answer

Ember 2.0 handlebars helper is not a function?

Have been looking for a few hours a fix for this without any solution. I am trying to create a custom Ember handlebar helper using: Ember.Handlebars.helper('highlight', function(value, options) { var escaped =…
Maksim Luzik
  • 5,863
  • 4
  • 36
  • 57
0
votes
0 answers

How to use ES2015 Template strings in an Ember helper

Ember > 2.0 + Ember suave are telling me: "requireTemplateStringsForConcatenation: Using manual concatenation with strings is not allowed at helpers/svg-icon.js" import Ember from 'ember'; export function svgIcon(iconName) { return…
sheriffderek
  • 8,848
  • 6
  • 43
  • 70
0
votes
1 answer

Ember.js checking store before going to database in 2.0+

In Ember.js 2.0+, if I want to check the store to see if records are already loaded and only go back to the database if they are not loaded, what method should I use? store.query('model', {'filter[ids]: ids}) goes back to the database every…
Drew
  • 77
  • 6
0
votes
1 answer

Ember 2, model.save() from component my-modal.hbs

I have this posts.hbs: {{#each model as |post|}}

{{post.title}}

{{post.text}} {{post.author.name}}
{{/each}} Then I open my write-modal.hbs: {{input…
user4412054
0
votes
2 answers

Ember action : set property of only target of #each

I have a few actions that I'm placing on each item in a loop. Currently the action reveals all of the book-covers, instead of just one I want to target. http://guides.emberjs.com/v2.0.0/templates/actions Looks like I can pass a parameter, but I'm…
sheriffderek
  • 8,848
  • 6
  • 43
  • 70
-1
votes
1 answer

How to call a method from ember addon component to application mixin file in ember 2.0

Have a method getAction() into application mixin file. I just need to call that method from ember addon component. Kindly help me.
1 2 3 4
5