Quantcast
Browsing all 4826 articles
Browse latest View live

Best way to load belongsTo from owner when ID not present

@gattra wrote: I am trying to load a model, likedList from the owner of that model, user. In other words, likedList belongs to user. The only problem is, the user model doesn't have the id of the...

View Article


Ember run tests in console

@ioanszabo wrote: Hi, When I create an component or a controller etc... ember also creates some tests file.It is possible to run tests in terminal as you do with phpunit? Or, can I write my own tests...

View Article


Mutiple Ajax calls from an ember component

@M.Shah wrote: I am very new to ember js 2.13. I have a component and have defined actions in them. How do I go about making multiple ajax calls based on differing payload. Any tips or samples will be...

View Article

Best way to import (or mock) a shimming module in test?

@nightire wrote: Here's the situation: The purpose is to write a service in this service, a 3rd party library was introduced (device.js) I use ember-cli-node-assets to add this tiny lib into vendor...

View Article

Get notified when findAll() background request is finished

@woprandi wrote: Hi, I like the idea of caching data but I have a problem and I didn't find an adequate response. I use findAll() to get my model, but when data is present in the store (from the...

View Article


Toggle component enabled/disabled using service

@c9dw5er wrote: I found this example in the forum and I have attempted to use it in my code below //Example found hbs`{{modal-filter feature=feature property=someProperty}} compoenentpropertyObserver...

View Article

Prevent observers from firing in Ember test

@Bryan_Neill wrote: I have a controller with multiple observers on the same property that I'm trying to test. The problem is the observer I'm not trying to test is firing multiple times. Is there a...

View Article

Simple ember application with JSON model

@david9922 wrote: Hi. I am building a simple application with Ember-Cli. I have a list of projects, I am displaying a list of projects on the index route, and on click I want to display the details of...

View Article


Access XMLHttpRequest from Ember Data

@fr0gs wrote: I am developing a web application in Ember 2.3.0 and while doing some cross-browser testing, it became apparent the slowness of the application for IE 11. Doing some measurements on the...

View Article


Image may be NSFW.
Clik here to view.

Ember async relationships stopped fulfilling in 2.12.0

@williamhaley wrote: I'm sure this can be filed under "I'm missing something obvious", but I've been trying to wrestle with an Ember upgrade for ~2 days now with no luck. I'm going from 2.11.1 ->...

View Article

Child route not hitting rails

@Chitra wrote: Hi All, I am trying to render Issue's children. Ember route changed in browser URL, but it didn't hit the Rails API. My URL looks like this: /issues/:id/issues Show.hbs File {{#link-to...

View Article

Using global state across multiple routes

@joshhornby wrote: I am building an ember app which needs to keep some dates in its 'global' state, these dates will be set by a date picker. The date picker can be used on multiple routes if I select...

View Article

Array computed alias not working in production

@engwan wrote: I have this computed property alias in my component: firstElement: Ember.computed.alias('myArray.firstObject') This works in development, but doesn't update in production mode. This...

View Article


Working with classes

@ioanszabo wrote: Hi,What I want is to be able to create objects from classes. (I know there are no classes in javascript and about delegation) Now, I have singletons in services. But if I do not want...

View Article

How to test component methods?

@okachynskyy wrote: I have component with one method and service, which can run functions for some components. export default Ember.Component.extend({ foo: false, bar() { this.set('foo', true); },...

View Article


Image may be NSFW.
Clik here to view.

Using Ember behind a reverse proxy

@Lupestro wrote: I'm having a devil of a time setting up an Ember CLI client on an ASP.NET MVC server behind a reverse proxy in an IIS shop. We had been using Ember barefoot before, but now that I'm...

View Article

Avoid whitespace before and after Ember component

@konrad wrote: Hi, I'm trying to render an Ember component inline. Right before, there is a "(" character and right after there is ")". What I do in Handlebars:...

View Article


Destroy jquery plugin between ember components

@lamamasters wrote: Hello,for example, i have 2 templates:gallery - with jQuery plugin (included by component.extend),contact - without any plugins. What Ember doing with this plugin? Destroy it after...

View Article

Please delete this post

@BenjaminH wrote: saved too soon, can't delete?! Posts: 1 Participants: 1 Read full topic

View Article

Sorting by multiple properties, depending filters

@planetexpress69 wrote: Hi there, imagine a simple entity like// simple entityconst Item = Ember.Object.extend({ name: null, color: null, price: null}); and a model hook likemodel() { return { items:...

View Article
Browsing all 4826 articles
Browse latest View live