How to get model data from component
@rzky wrote: This is so stupid. How the heck do you access model data from inside component? This is my first attempt on using Ember Data. So, I have a component that’s being called like this:...
View ArticleHow can I override the default action helper?
@maffews wrote: I’m tracking most actions by overriding send in Routes, Controllers, and Components, but I can’t capture direct method calls or closure actions invoked in templates in this way. I’d...
View ArticleSenior Software Engineer (Remote)
@shanly wrote: We are currently going through a very exciting and interesting evolution of our platform. We are moving from a traditional RoR architecture to a modern “single page application”,...
View ArticleAcceptance test failing because of authentication
@Jeffrey_Cheung wrote: Hi guys, I am writing the following acceptance test: test('visiting /posts', function(assert) { visit('/posts'); andThen(function() { assert.equal(currentURL(), '/posts'); });...
View ArticleHow to destroy zurb's foundation element from DOM
@Zorig wrote: Hi, I am currently doing ember+zurb’s foundation. Due to not supporting fastboot 1.0 ember-cli-foundation-6-sass i am using this addon. Now i want to destroy reveal component. Because...
View ArticlePassing parameters between template hbs pages
@Gayathri_Chelladurai wrote: app/templates/tasks.hbs: {{outlet}} Tasks {{#each model as |task|}} {{#link-to 'tasks.edit' task.id}}{{task.title}}{{/link-to}} Created: {{format-date task.created}} Due:...
View ArticleEmber Data Backend
@Grahamcox82 wrote: I’m just getting started with Ember, and I’m feeling like I’m missing something. I’ve gotten an app working, with routes and models and templates and everything. But when I try to...
View ArticleAccessing Parent Model from Child Route
@rjoxford wrote: I have a child route, with a child model, in which I display data about that child model. I also want to be able to display a few other bits of information about the parent model. But...
View ArticlePass a model to a controller
@emiliogambone wrote: Hi! in my helper i try to call this.get(‘model’) and appears the error “this is undefined”. So, is there any way to get it directly from the helper? Or should i pass it from the...
View ArticleAddepar Ember table won't serve npm
@John_marcel wrote: I’m can’t get the Addepar table to work locally. Everytime I get the following error: "Cannot find module 'C:\Windows\System32\addepar-table\bower_components\ember\emb...
View ArticleHow is KeyName argument interpreted and how is the nested propertie access done?
@jgomo3 wrote: I’m using the minilanguaje of KeyName arguments in methods like get and set to access nested properties in some Ember Objects. I’m following this Recomendation to access nested...
View ArticleGetting an html element without jquery / this.$()
@midget2000x wrote: Not that it really matters that much, but I was curious if there was a way to access an HTML element in a component without using this.$() Example: export default...
View ArticleCall function javascript in route
@Khanh_Vo wrote: Hi all, I’m a newbie with emberjs, I want to show a notify after create, update, delete with sweetAlert plugin. so how to call sweetAlert function in route? Thanks. Posts: 2...
View ArticleCheck changes in textarea as we edit the text
@nagasuryamangai wrote: I have been trying to check the null fields in my application. I need to know the method which fires up as soon as i change the text in the textarea. Posts: 2 Participants: 2...
View ArticleQunit serializer test is returning "Cannot read property 'push' of null"
@misterdz wrote: Ember serializer test below is failing at line 103, throwing the error shown above it: Screen Shot 2017-08-01 at 5.23.14 PM.png2066x1408 413 KB FYI, I am using the Pretender library...
View ArticleHow to handle Ember.Data model errors
@rzky wrote: Silly question. I have this action that captures model loading error, which sets a property that toggles an error message on the template. // route/parenting.js actions: { error(error,...
View ArticleHow to write test cases on drop and down using jquery in ember.js framework?
@Sandeep_Mukherjee wrote: This is javascript/jquery to test drag n drop in ember: I am not sure why it is not running: /* test(‘dragdrop’, function(assert){ this.render(hbs{{dragdrop}});...
View ArticleEmber updates my client data almost immediately after a database change
@keanedawg wrote: Hi there, this is not really a bug but just something that I’m mostly just surprised by. I am using Firebase as our companies back-end database for a couple of small services. I have...
View ArticleModals as components not controllers
@johnunclesam wrote: I searched but nothing made me happy. I found this: http://ember.guru/2014/master-your-modals-in-ember-js But he’s using controller. I need to use components. How can I use this...
View ArticleHow to test SVG drag and drop in Ember
@basecamp wrote: I am trying to mimic mouse control on SVG elements like drag and drop. However, the mouse events are not getting triggered in the tests. I have wrapped them in Ember.run as well. Any...
View Article