How to name the component?
@marxsk wrote: Hi, I have prepared a component that dynamically creates new fields in the form when the last one is already filled. For example, if you wish to allow users to enter multiple (unknown...
View ArticleHow to load data async from punkapi with infinite scroll?
@Atreyu wrote: Hello. I have a problem while creating my app with Ember Infinity addon. I am using https://api.punkapi.com/v2 and https://github.com/hhff/ember-infinity. In my app I want to display a...
View ArticleHow to edit record in ember.js
@Syash wrote: I am very new to ember.js and also to this MVC thing. I am returning hard coded model from route. I want to edit records by click on edit button. I am calling an action from controller....
View ArticleREST Serializer/EmbeddedRecordsMixin: New records with sideloaded parent record
@billdami wrote: I’m running into an issue with the REST Adapter/Serializer and EmbeddedRecordsMixin, specifically my app needs to be able to sideload an model’s parent record in create/POST...
View ArticleDoes the output of the {{each}} can be sorted?
@GregWang wrote: Could data be sorted by each helper? Posts: 5 Participants: 2 Read full topic
View ArticleServer requires restart after deleting component (or route)
@gkaplan wrote: When I delete a route or component (and possibly other objects, but those two for sure) and the server is running, the automatic recompile fails and there is no way to recover except...
View ArticleDynamically add routes at runtime?
@shull wrote: We need to load data from the server to determine what some routes will be. Tried to do Router.map inside an afterModel hook in a route and found that it does not successfully add the...
View ArticleMake model hook (and everything else) fire when navigating from glob route to...
@shull wrote: For various reasons we need to define some routes in a very flexible way, like this: Router.map(function() { // ... other routes this.route('page', { path: '/pages/*wildcard' }); }); The...
View ArticleHow do I programmatically create several records with createRecord?
@greyhwndz wrote: I want to do the following: this.get(‘store’).createRecord(‘product’, [ { id: 1, name: ‘Apple’ }, { id: 2, name: ‘Grapes’ }, { id: 3, name: ‘Strawberry’ }, { id: 4, name: ‘Banana’ },...
View ArticleQ&A | RFC 176: JavaScript Modules API
@locks wrote: Hi everyone! With the release of 2.16, we will switch the default imports for blueprints to the format suggested by RFC 176. The intention of this thread is to concentrate all your...
View ArticleHow to programatically setup default query params after model?
@tsteuwer wrote: Here’s the deal: You’re able to set default values for query params, so that when the query param matches the original value, ember removes it from the URL. I need to be able to...
View ArticleError when updating Model with relationship
@ChrizzDF wrote: Hi folks, I set up a simple Ember Twiddle to show you my error that is occurring when trying to save a model. It’s considerable that I’m using ember-cli-mirage for mocking the data....
View ArticleReturn a record by it's name not Id
@mikeelemuel wrote: Hi. I have this code that return a timeSlot record in a table and filter by from and zoneId and sorted by from. On, template.hbs there is dropdown selection that would display a...
View ArticleHow to do integration test with router service?
@Jeffrey_Cheung wrote: My component has a button that will navigate to different page when clicked. When i do integration test, I want to make sure the page it navigates, however I get Cannot read...
View ArticleUpgraded to 2.15.1 from 2.11. App no longer runs
@johnnyicon wrote: Hi there, I’ve just upgraded 2.15.1. I followed the release instructions, ran ember init and carefully parsed through and merged the diffs of the files. Now, when running my app...
View Article.jshintrc predef errors
@haldiggs wrote: Sorry I know there are past issues that describe how to set this file up and I have been successful in past ember versions. ember-cli: 2.14.2 ember-source: “~2.14.1” After upgrading I...
View ArticleChange CSS when model changes
@vamshikarru wrote: I have a table and it gets the data from DS model which dynamically updates from the database. I need alert of color (css) change of the block( particular “td”) in UI when the data...
View ArticleBest security practices with regard to clearing model data between logins
@timmyomahony wrote: Hey, What the best practices with regard to handling multiple users on the same machine? Is it simply a case of clearing the model data on logout using this.store.unloadAll(); The...
View ArticleWhat do you read about ember.js?
@dimas09 wrote: I want to gather most valuable articles about ember.js per week and share with my colleagues. Please advice good resources. Posts: 2 Participants: 2 Read full topic
View ArticleHow can I to use broccoli-asset-rev in addon?
@kaermorchen wrote: Hello. I’m creating an ember addon (https://github.com/kaermorchen/ember-mdi). This addon create svg file in assets directory. But the name of this svg file don’t has hash. I think...
View Article