Quantcast
Browsing all 4826 articles
Browse latest View live

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 Article


How 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 Article


Names 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 Article

Ember 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 Article

Image may be NSFW.
Clik here to view.

Ember 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 Article


Ember 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 Article

Ember 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 Article

How 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 Article


How 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 Article


Initial 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 Article

Potential 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 Article

Question 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 Article

Ember 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 Article


Newbie 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 Article

Strange 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 Article


Image may be NSFW.
Clik here to view.

Assets 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 Article

Ember-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 Article


Deploy 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 Article

Should 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 Article

Singleton 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
Browsing all 4826 articles
Browse latest View live