Mapping data external API
@eder wrote: Hey guys. someone can help me about how consuming an API using Ember. I have a model called product export default DS.Model.extend({ url: DS.attr('string'), variations: [], //? }) But i...
View ArticleExplaining the various ways to make actions and call them to a newcomer
@xcambar wrote: Hi, I’m having difficulties explaining the subtleties behind Ember’s actions API(s?). Between {{my-component myAction="anAction"}} {{my-component myAction=(action "anAction")}} the...
View ArticleUsing scss @import in my app.scss production doesn't remove comments in final...
@johnunclesam wrote: In my app.scss file I’m using @import "./node_modules/bootstrap/scss/bootstrap"; because I’m using (and sometimes changing) some Bootstrap variable into my app.scss. I found that...
View ArticleModel says "someProperty: belongsTo('model-name')" but...
@josiahbryan wrote: It was brought to my attention by one of my developers and I confirmed it thru testing several of our models the following “problem”: We define our models with belongsTo, like...
View ArticleFastboot 'JavaScript heap out of memory'
@willviles wrote: Our production app using Fastboot App Server (ember-cli-fastboot v1.0.2) is hitting JavaScript heap out of memory. Has anyone else encountered this problem? We could just put pm2 in...
View Article[BUG?] UnloadAll cause fetching fail
@SelokYeung wrote: Hi all, I find something strange when I try to cleanup data store. Currently I’m trying to unload all record of specific model type from data store with UnloadAll. Everything work...
View ArticleIs there an event when update parts of a model from backend?
@Myrdhin wrote: We have the following model: // app/models/user.js import Ember from 'ember'; import DS from 'ember-data'; export default DS.model.extend({ login : DS.attr('string'), language :...
View ArticleSave a Model through adapter
@emiliogambone wrote: route/report/final-check.js` actions:{ submit(){ var model = this.get('model').reports; var store = this.get('store'); this.get('model').reports.save().then(function(model){...
View ArticleWhy DS.PromiseObject in component instead of fully loaded model?
@mkconn wrote: So I have the problem, that I load a RSVP.hash as the route model and pass it to a component which passes related models to child components (via computed properties). In the child...
View ArticleIn this comparison of the performance of popular frameworks Ember and Glimmer...
@johnunclesam wrote: I’m an enthusiast Ember user. I already test everything in no time when something new is released, i’m very happy with Ember. That said I’m very unhappy when I see something like...
View ArticlePerformances: VS
@johnunclesam wrote: In this amazing video (https://www.youtube.com/watch?v=udix3GZouik) Alex Blom talks about “hacks” in Ember for mobile world. At 22:00 he says something about <button...
View ArticleI am not able to deploy my Ember application while Hosting cpanel
@sumitkapoor wrote: I am not able to deploy my Ember application while Hosting. Its working on localhost:4200 while uploading as it is folder on Cpanel its not working. Can any one can help me? Posts:...
View ArticleA few questions for migrating from Ember 2.0 to 2.14
@spectras wrote: Hello, I’m working again on a previous Ember-based project after ~18 months. I’m in the process of updating project for the latest release of Ember.js. I wonder what changed since...
View Article14:1 error '$' is not defined no-undef
@shivakrishna wrote: i want to make a rest call using jquery in my route handler but in cli i got this(14:1 error ‘$’ is not defined no-undef) error message. can i know how to use jquery in route...
View ArticleEmber 2 performances, is javascript event delegation in #each automagically?...
@johnunclesam wrote: I’m reading a lot (for study) about “Event delegation” and also because in this video: https://www.youtube.com/watch?v=udix3GZouik (minute 22:28) Alex Blom talks about: “Coalesce...
View ArticleEmber.computed task.isRunning == "You modified isRunning twice in a single...
@dlindquist-egistix wrote: I’m encountering a “You’ve modified xxx twice in a single render” error when using ember-concurrency tasks inside computed properties. Here’s an extremely minimal example of...
View ArticleDisable a link-to for an action inside it
@emanuk wrote: ember-cli: 2.14.2 node: 7.10.1 Hi there, I have a component linked to an action inside a link-to. The action of the component is to set a class of bouton to active when the user click...
View ArticleDoes addObserver require removeObserver if component destroyed?
@dlindquist-egistix wrote: I have a use case where I am using addObserver to dynamically add an observer to a component. I’m wondering if I need to pair this with a removeObserver call if: I only ever...
View ArticlePERFORMANCES DILEMMA, computed properties in route or controller?
@johnunclesam wrote: I’m using Ember 2.14.1. Is it better that computed properties and something like that (until routeable components land) is on route or in a controller? For performances reasons I...
View ArticleNo 'Access-Control-Allow-Origin' header is present on the requested resource....
@shivakrishna wrote: I am trying to make rest call from my controller it’s showing error in console like jquery.js:9566 OPTIONS https://url/api/ 401 (Unauthorized) localhost/:1 XMLHttpRequest cannot...
View Article