How to create a new instance of a model to pass to a component?
@alidcastano wrote: I'm trying to create a new instance of a model so that I can pass it into a component. The component is a form that needs the model to check validations (I'm using...
View ArticleUnable to find transform for 'float'
@thibaud_denolle wrote: Hi, I'm using a rails 5 api that render exactly this: {"data":[{"id":"1","type":"taxes","attributes":{"rate":0.055,"context":"whatever"}}]} my "rate" attribute is clearly a...
View ArticleHow to obtain the store in an application initializer?
@tsteuwer wrote: I need to query from the store before the application boots and I want to use the app.deferReadiness() and app.advanceReadiness(). I'd like to use the store because it gets returned...
View ArticleComputed Property not firing second time
@JordanRDesigns wrote: I have pubnub hooked up to my app, it receives information about how to change item attributes when someone on the other end has changed them ( for instance an admin changes the...
View ArticleWill Ember make me a better programmer?
@alidcastano wrote: Ember is the first front-end framework I've used. The learning curve has definitely been steep, but I do enjoy using it and can see how it'll make me a more productive programmer....
View ArticleProgramatically create component
@tookien wrote: I want to add a component programatically and append that after a target element. something like this: let comp = SomeComponent.create({ item: item });...
View ArticleHow to display server errors in templates using RESTAdapter?
@hashbug wrote: While trying to handle server side errors in Ember application, I am unable to show the errors in templates. On record.save action the API returns errors as: { "errors":[ {...
View ArticleMultiple nested models in one route
@brownie3003 wrote: I'm building a quoting tool at the moment. I'm struggling with how to load nested models with only one parent route. My quote is a document. Each document has many sections and...
View ArticleYou cannot use the new command inside an ember-cli project
@khunemz wrote: After install yarnI have tried to create new projectember new project-name -dir ui but it shows an errorYou cannot use the new command inside an ember-cli project. I am using...
View ArticleAccessing a route directly via URL, the data is not populated
@jas wrote: I have a nested route setup as I would like to have my templates nested as well. The route setup looks like this: ... this.route('posts', function() { this.route('post', {path:...
View ArticleMirage: Add custom host to adapter issue
@ezy wrote: I'm using Ember-cli-mirage to mock data. I want to slowly integrate parts of the real api which is located at http://localhost:8000. Ember docs tell me that I should be able to set an...
View ArticleCatch POST response without model
@sln wrote: We not use model. Now we send FETCH and use promise to processing response.How I can catch response without promise? We have many request and I wont have one point to processing response....
View ArticlePersisting nested relationships
@jesmith wrote: I am trying to use ember-data to persist object to my back-end API. I am using the RESTAdapter and JSONSerializer as JSON-API does not fit my API's design. The API I am posting to is...
View ArticleSaving model according to JSON-API
@dimas09 wrote: I'm using Ember.js 2.7 and Ember Data 2.8I have model User which has reference one-to-one UserMetum and has reference has-many Specializations.I have edit user form which affects to...
View ArticleMultiple Patch/post Service calls with Data rollBack when service fails
@vvvprabhakar wrote: Calling Multiple Service calls with Post /patch methods , when any one of the service call fails how to retrieve or roll back the saved data through a call ?Is there any rollback...
View ArticleLoading Components when routing Ember 1.13
@fasih wrote: Currently I have an Ember 1.12 application within my Rails application. I'm upgrading to Ember 1.13. The biggest thing is converting all our existing views into components. I've gone...
View ArticleHow do I customize app based on hostname?
@Graham_Hunter wrote: We are developing a multi-tenant application that is going to be set up on our customers' domains. Each of our customers require a custom color scheme and text for their login...
View ArticleHow to customize Ember Data error messages
@jaaksarv wrote: How can I customize/translate Ember Data generic error messages "Adapter operation failed". Validation errors I have already translated on server side, but sometimes something...
View ArticleNeed help understanding why I need to wrap $.append in a run loop
@l_tonz wrote: Hi guys, can someone explain why I can only append to a div if I wrap Ember.run. if I do append, it says cannot append to a view that’s already been loaded. Also, does Ember force you...
View ArticleDDAU is giving me fits
@ikarius wrote: I'm working on an ember app, and running into a situation where what needs to happen feels to be at odds with the DDAU philosophy. My back end is rails, and I'm using JSONAPI between...
View Article