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
1
vote
1 answer

Ember 2.0 alternative for transitionTo since its deprecated

So I am trying to make a component named 'fsol-app-btn' that is an A tag link. The first thing I did was change the tagName in the component.js So it properly renders on the page as an A tag. Here is the component.js: export default…
pfg
  • 213
  • 2
  • 7
1
vote
1 answer

EmberJS, How to manage different "config variables" for different "environments"

There are several of questions under the emberjs tag that talk about how to manage different environments but all of them are only applying for very concrete scenarios. I'm looking for a general solution of how to set different config variables for…
fguillen
  • 36,125
  • 23
  • 149
  • 210
1
vote
1 answer

"Application Actions" in Ember 2.1

I'm trying to create a modal for my users to signin, so I have this link:
  • Sign In
  • in a {{planhw-navbar}} component. {{planhw-navbar signin=(action "showModal" name="signin-modal")}} But when I open my browser, I…
    Ben Aubin
    • 5,542
    • 2
    • 34
    • 54
    1
    vote
    1 answer

    How to Use Jquery Datatables in Ember 2.0

    I picked up learning emberJS lately and I have had issues doing some basic things I would have done while not using this framework. The main issues I have had was using jquery plugins, in this case jquery datatables in my component's…
    Riliwan Balogun
    • 308
    • 1
    • 2
    • 10
    1
    vote
    1 answer

    Ember 2.0 components - attribute naming convention

    Is there a convention or preferred naming convention for component attributes? I have seen dasherized: {{my-component initial-selection='...' on-selected=(action '...') }} and camel cased: {{my-component initialSelection='...' onSelected=(action…
    jax
    • 37,735
    • 57
    • 182
    • 278
    0
    votes
    2 answers

    How to redirect an Ember page without rendering?

    We have an Ember UI that we're porting to a Single Sign-on provider. This is behind a server-side feature flag such that, when the flag is on, the user is redirected to the SSO provider login portal and, when the flag is off, the user may still…
    Patrick M
    • 10,547
    • 9
    • 68
    • 101
    0
    votes
    1 answer

    Promise Retry Wrapper for Ember

    I have a snippet of Ember code that calls an API end point and populates an array when a response arrives (there are other items added to the array independently of the API call. I omitted irrelevant code for simplicity): descriptor:…
    AstroSharp
    • 1,872
    • 2
    • 22
    • 31
    0
    votes
    1 answer

    Ember evented on error: Assertion Failed: on called without valid event names

    I have a controller in my ember 2.18 app and I want to make it listen to some event myEventName triggered somewhere in the app, to change the model properties. According to the API docs for this version the way to catch an emitted event is like…
    Ty Kayn
    • 719
    • 7
    • 24
    0
    votes
    1 answer

    How can i set the id of a link-to component in ember

    I am trying to add ids to elements in Ember 2.4 to facilitate automated testing. However, elementId on link-to does not seem to be respected, and gets ignored. Is there any way to force the id of a link-to component
    Staale
    • 27,254
    • 23
    • 66
    • 85
    0
    votes
    1 answer

    Ember.js 2. Nested routes but non-nested templates

    First of all, thank you all for your efforts in this forum. I have this situation: mysite.com/authors (list of authors) mysite.com/author/1 (author 1) mysite.com/book/1 (book 1 of author 1) mysite.com/cart/1 (cart page of book 1 of author 1) I…
    user4412054
    0
    votes
    0 answers

    Ember parent child component, how to avoid unnecessary life cycle hook from triggering?

    Child component property update is triggering all the parent component willUpdate,willRender,didUpdate and didRender life cycle hook methods. but I just updated property which is visible only the child component, It has nothing to do with parent…
    Ember Freak
    • 12,918
    • 4
    • 24
    • 54
    0
    votes
    1 answer

    How to not lose hasMany changes on Ember query?

    In my application, I search for documents with query. Then I edit one attribute in a single document, and then I call search query again. Result is OK, I see document still in a dirty state with changed attribute. Then I again pick one of documents…
    Jiro Matchonson
    • 875
    • 1
    • 17
    • 24
    0
    votes
    1 answer

    ember-app blank after upgrade to 2.12

    I'm trying to get an app from Ember 1.13 to Ember 2.12. I upgraded ember-cli and all of that. I did the steps in this guide, most importantly ember init and then resolved the differences that appeared. The result is that I have a blank page. Most…
    Christian Neverdal
    • 5,655
    • 6
    • 38
    • 93
    0
    votes
    1 answer

    How to pass an object to link-to + queryParams in Ember?

    I'm currently in a situation that I need to pass one object to {{link-to}}, but queryParams does not accept objects {key:value}. I need this feature because I'm using this component in different templates. The reason for doing that is that one…
    renno
    • 2,659
    • 2
    • 27
    • 58
    0
    votes
    1 answer

    Bind checkbox to element of one array in Ember 2+

    I'm trying to bind elements of one array to the checked attribute of checkboxes using Ember 2.8. I'm also using this in one component. The checkboxes show all marked, but whenever I tried to use the action hideOrShowAllColumns it does not mark all…
    renno
    • 2,659
    • 2
    • 27
    • 58