Skip to content

Ember.js

Ember Server Side Form validation with Mirage

In this Ember.js example, I’ll show how to get ember-cli-mirage to return correct JSON-API response, so that Ember Data correctly processes Error message and makes it accessible inside the template. This code was tested on Ember 2.6.0. We have the following registration model: There are three main elements that make this work: Controller that saves the data, Template that renders form and errors, and […]