Quantcast
Browsing all 4826 articles
Browse latest View live

How would you simplify these nested routes so there isn't duplicated code?

@johnnyicon wrote: I’m confused as to how nested routes and dynamic segments work with Ember. Below is how I’ve defined a series of nested routes for a House. I’ve been following the pattern for...

View Article


Something is wrong with best practice rules

@ioanszabo wrote: lines: Ember.computed('linesReady', 'selectedID', function () { let selectedID= this.get('selectedID') let lines= this.get('linesReady') return lines.map(line => { if...

View Article


What is best practice for creating new records between transitions?

@johnnyicon wrote: The scenario is a user clicks a button on a template which takes them to another route/template. For clarity, let’s call the page with the button the index route/template, and let’s...

View Article

HOWTO access `currentUser` within the `model()` hook with ember-simple-auth?

@johnnyicon wrote: I am using ember-simple-auth as my authentication library. I have a situation where I need to access the currentUser‘s ID to retrieve a record in the model() hook of a route...

View Article

HOWTO call `findBelongsTo` on the JSONAPIAdapter via Store?

@johnnyicon wrote: Does anyone have any practical examples of how to call the #findBelongsTo method on the JSONAPIAdapter? To give some context, I have a house model which has one (1) master-bedroom....

View Article


Data Generating Upon Load

@bw70316 wrote: I have several forms and whenever I load the page to the form, the corresponding data model populates “null” and “undefined” without ever entering any information. For example, a login...

View Article

Odd {{link-to}} behaviour - not using the object's id property by default

@johnnyicon wrote: This is strange behaviour and I wanted to see if this is right. When a pass a model (and just the model) to a the {{#link-to}} helper, I get the following error: Assertion Failed:...

View Article

Ember and muti-level push menu

@_monster wrote: i am new to ember and a learning from start but i want to , learning though build some simple project , and i am intrested in this topic , muti-level-push-menu , so how going to make...

View Article


How to choose an object from a nested model in a template

@hectorsq wrote: I have the following model tree already loaded using a single request to the backend: - document - group_1 - observation_1 - observation_2 - group_2 - observation_3 - observation_4...

View Article


Emberfire: issues with session service & App Engine

@pulletsforever wrote: Ok, I am going to work on a reduction, but here is what I am running into: Environments: ember s: no issue npm start: no issue App Engine: “Error: Assertion Failed: Attempting...

View Article

jQuery 'on' event is different while using Ember JS

@sathishkumar_sekar wrote: While binding function to a html element using jQuery ‘on’, why callback function func having on attribute in Ember JS which is not available in JQuery. jQuery Application:...

View Article

POST action with XML payload

@emiliogambone wrote: Hi! I’m trying to send to the server through adapter the record ‘report’. This is my adapter: import DS from 'ember-data'; import RSVP from 'rsvp'; const { Promise } = RSVP;...

View Article

Reusing Ids For Soft Deleted Records

@williamhaley wrote: I am running up against this, understandable, behavior from the store. "Assertion Failed: 'some-record' was saved to the server, but the response returned the new id '32', which...

View Article


Ember 2.16 Modules API - How to import Ember.onerror?

@hinti wrote: What is the correct import statement for Ember.onerror with the new modules API? Same for Ember.testing and Ember.Logger. ember-modules-codemod does not migrate these imports. Thanks!...

View Article

Qunit assert throws not working

@leofoto123 wrote: I am trying to assert that a few steps in the code (visiting page, providing wrong card-number, password combination and clicking submit)should generate an error from the backend...

View Article


Running JS files in the public folder through Babel

@ousikaa wrote: I have several JS files placed in the public directory under public/assets/scripts. Is there a way for ember-cli to run those JS files through Babel? It doesn’t look like it does so by...

View Article

How do I force unloadAll() to execute?

@johnnyicon wrote: Hi everyone, I’m trying to use store.unloadAll('model-name') before calling a subsequent store.query('model-name', params). Sometimes the unloadAll method works as I expect it to,...

View Article


Image may be NSFW.
Clik here to view.

In Ember js, How to get the data by filtering and manipulate the values then...

@vamshik wrote: Please help me with this ember issue, I am trying to get the data in my component from my db with multiple filters like kind, same value and I want to save the count with the same...

View Article

How simulate "enter" keypress in integration test?

@skitterm wrote: I have an input that triggers an action when enter key is pressed. I’ve tried programmatically simulating that event in my integration test but have fallen short.How would I go about...

View Article

Best Ember Data table/ Grid for Material design

@emberman wrote: Best Ember Data table/ Grid addon for Material design Posts: 1 Participants: 1 Read full topic

View Article
Browsing all 4826 articles
Browse latest View live