Quantcast
Browsing all 4826 articles
Browse latest View live

Testing if a record and it's relations have been destroyed

@Voles wrote: I’ve created an Ember service with a method to destroy a record and it’s related data (defined by relationships in the model). This is my delete-user.js service. import Promise from...

View Article


Computed property recalculating on store.unloadAll()

@williamhaley wrote: Should computed properties fire when you unload records from the store via unloadAll()? I’m seeing an issue where an app of mine is re-calculating some computed properties when I...

View Article


Internationalization

@belgoros wrote: Are there any tutorials, examples on how to implement internationalization in an Ember app? I found the only more or less updated add-on: ember-i18n but it lacks of examples and some...

View Article

Filter the store result

@GELight wrote: Hi, . what is the best way to filter my store result? If I try any way to use the filter method, my result will be NULL. This is my current code: categories: computed('store',...

View Article

How to bypass mirage?

@sim085 wrote: I have written a small application which makes use of mirage to simulate api calls. Everything works fine but I would like to now call the “real” api service I have and not the stub...

View Article


Input field binding

@Antediluvian wrote: URL: http:/localhost:4200/bands Ember.js version: 2.18.0 /templates/bands.hbs {{input type="text" class="new-band" placeholder="New Band" value=name}} <button class="btn...

View Article

Error: Nothing handled the action over and over

@mateuszosuch wrote: I am facing issue I cannot overcome within the “Error: Nothing handled the action (…) description”. I tried almost everything (changed naming, moved snippet from component to...

View Article

Any thoughts around Intern.js?

@bmurphy wrote: Greetings all, I was wondering if anyone has any opinions or experience with using Intern as their testing framework. Specifically those who have used it with Ember instead of the...

View Article


Multiple select with Shift+arrow is not working

@chani wrote: Hi, {{#if view.details}} Car Types {{view view.Select multiple="true" class="design" name="List" contentBinding="view.data" optionLabelPath="content.itemLabel"...

View Article


Remove multiple records at once

@marxsk wrote: I have backend that allows me to remove multiple records at once. When I need to delete only one record: record.deleteRecord() record.save() user interface is updated so user see that...

View Article

Facing issue in using ember-light-table

@Ashish wrote: am learning ember js and I came across ember-light-table as an alternative of data-tables. I just want to display some static data into table. So instead of creating mixin and...

View Article

Sorting model in controller

@Antediluvian wrote: ember.js version: 2.18.0 model: export default DS.Model.extend({ name: DS.attr('string'), description: DS.attr('string'), songs: DS.hasMany('song') }) controller: export default...

View Article

Creating multiple records in a single model unit test

@stefan_kracht wrote: Hi there, I have some trouble on understanding the model testing setup. I want to write a test that ensures that I can handle multiple records of a model independently. Turns...

View Article


Image may be NSFW.
Clik here to view.

Using express.js GET Ressource in in-repo-addon

@GELight wrote: Hi all, I search an example where I can define REST Ressources ( GET, POST, … ) in a simple in-repo-addon for the development time until I have a real node project for my backend etc…...

View Article

Image may be NSFW.
Clik here to view.

Filters within listing

@s.fransen wrote: Hi, I’m working on a item listing that has filters within the listing. Example: The orange boxes can change of height. I first tried this with Masonry this worked but I was a bit too...

View Article


Save a new record using save()

@Antediluvian wrote: ember.js version: 2.18.0 route: export default Route.extend({ actions: { createBand: function() { var controller = this.get('controller'); var band =...

View Article

Dom exception issue

@sapana wrote: hi all, when i run node webkit browser exe then when obLoad iframe this issue is occur in my project anybody plz give me suggestion to resolve this issue. thanks in advance....

View Article


Mixins not documented at https://guides.emberjs.com

@Ben_Glancy wrote: Does anyone know why mixins is not really covered at https://guides.emberjs.com? Are they supposed to be used? I have a class, I want to include a mixin, how do I do it? Posts: 1...

View Article

Generate Normal Object

@Ben_Glancy wrote: Hi, Is there a command (there doesn’t seem to be) to create a normal Ember “object” as mentioned: https://guides.emberjs.com/v2.18.0/object-model/classes-and-instances/ Posts: 1...

View Article

Computed.sort on models that have not been retrieved yet

@Antediluvian wrote: ember.js version: 2.18.0 the route: export default Route.extend({ sortBy: computed(function() { return [ 'rating:desc', 'title:asc' ]; }), sortedSongs:...

View Article
Browsing all 4826 articles
Browse latest View live