How should controller actions be unit tested?
@Garrick wrote: A controller action is passed to components as an action closure. The action returns a promise. The guides demonstrate that actions can be tested via controller.send but that only...
View ArticleHow do I find out if I'm inside an engine?
@jnfingerle wrote: Hi, I'm writing a route mixin that is supposed to call this.transitionToExternal when used inside an engine and this.transitionTo otherwise. Is there a way to reliably find out if...
View ArticleNames of routes to use as a title reachable from router
@armikhalev wrote: What would be the best way to implement additional names to routes in the router to get them in components? What it might look like: Router.map(function() { this.route('about',...
View ArticleEmber js ejecutar javascript cuando se haya cargado el html
@okarook wrote: Buen dia colegas, soy nuevo en emberjs y estoy tratando de adicionar el template https://github.com/puikinsh/gentelella pero tengo un problema con el menu porque al dar clic no...
View ArticleEmber Data: RSVP Question
@redhendery wrote: Hello, I'm new to Ember and trying to wrap my head around returning multiple model data using RSVP.hash. Let's say I have data models called:thing1thing2thing3 Returning and...
View ArticleEmber components crashes on production
@shiro-saber wrote: Hello, first of all, I'm new in ember.js, I started with this about three months ago, I did my first application, locally the application works beautiful, but when I build it on...
View ArticleEmber data: Revert belongsTo destroy
@leondmello wrote: Suppose I have two models, parent and child which share a belongsTo relationship. models/parent.js { child: belongsTo('') } models/child.js { parent: belongsTo('') } In one of my...
View ArticleHow to access inner component DOM before rendering?
@kosmonaFFFt wrote: Hello all... I want to access inner DOM nodes from component code before rendering. Example: // Some template. {{#data-table items=model}} <thead> <tr>...
View ArticleHow to show message for an empty model instead of loading in hbs template,...
@johnunclesam wrote: I use very often in my code (and I don't know if I'm right to use it): {{#each model.posts as |post|}} <div>post.title</div> {{else}} <div>I'm loading the...
View ArticleInitial changeset in a componment and changeset stop updatting as attribute...
@mufasa wrote: I am trying to initialize a changeset in my component init: import Ember from 'ember'; import DS from 'ember-data'; import Changeset from 'ember-changeset'; import lookupValidator from...
View ArticlePotential performance issue for multi-selectable table row
@li-xinyang wrote: I have create an multi-selectable table which allows you to select multiple rows; however, in order to check the current marking (whether checked OR not) I need to do the following....
View ArticleQuestion about cached records
@accelerate wrote: The guide says about cached records: One downside to returning a cached record is you may find the state of the data has changed since it was first loaded into the store's identity...
View ArticleEmber 2, Show a single loading message when the ids where included in the...
@johnunclesam wrote: I use very often in my code: {{#each model.posts as |post|}} <div>post.title</div> {{else}} <div>Loading the posts...</div> {{/each}} But sometimes I don't...
View ArticleNewbie question about datas in controller
@Neewd wrote: Hello, I'm quite a newbie in Ember, I first learn Vue.js and I friend told me to try Ember so I just try to do some things around Ember and I am stuck with a newbie problem. I just...
View ArticleStrange behaviour with isPending, isSettled, isFulfilled when using included...
@johnunclesam wrote: I need to understand once for all why property like isSettledisPendingisFulfilled are different if I'm including or not the data in my API respone. I'm asking here this:...
View ArticleAssets folder doesn't load at production mode
@robertoflj3 wrote: Hello, Firstly sorry for my english . I'm running locally my ember project on Windows 10, running by development server i haven't issues, but if i build a production project shows...
View ArticleEmber-simple-auth-auth0 sessionAuthenticated issu
@ioanszabo wrote: Hi, Funny thing is that sessionAuthenticated method from application route is running after the model which causes issues, as model cant be resolved since the user is not...
View ArticleDeploy to run without a server?
@robertoflj3 wrote: Hello, How i deploy a ember application without a WebServer?, I want to run opening the index.html file without put the application at the server, it's possible? Posts: 2...
View ArticleShould I use ember-computed-decorators decorators or not?
@palmergs wrote: I stumbled across the Ember Computed Decorators plugin plugin a month or so ago and, in my opinion, it leads to really clean code. But, I'm not sure about the status of decorators as...
View ArticleSingleton Controller - Rerun Initialization Code
@ewaschenko wrote: Hi, I have an edit controller with a few fields and a tags input. Essentially, when I load the route I initialize my variables and after {{input type="text" class="form-control"...
View Article