37 links for Models
-
Sharing A Parent Model Across Route Boundaries
Sometimes you have a UI where at a certain level you have multiple nested routes and they deal with one parent item. For example if you had a blog management system that supported multiple blogs, you could have a route like dashboard.blog.post.edit and the Blog model is found at the dashboard.blog route. So at this point you want to use that same blog model in the other routes. Historically there has never been a great way to do this, you might think put it on a service, but then you have to register and cleanup that service since services are global. Along with that inconvenience it's also not clear where the service gets its data, it seems a bit magic.
Article by Ilya Radchenko on 11th September 2020
-
Minimalist Ember (Part 1)
A simple way to update a route’s model when user interaction requires a new view of the data.
Article by Alex Middeleer on 14th August 2018
-
The case against async relationships in Ember Data
Article by Ryan Toronto on 17th November 2017, in EmberMap
-
Ember Simple Auth – How to Access the Current User in the Model Hook
Article by Sabin Hertanu on 14th November 2017
-
How to Validate Query Params in Ember.js – The Ember Way
Article by Sabin Hertanu on 22nd October 2017
-
Ember Model Validator
This Ember cli addon is born from the necessity of having a similar validation support like we have on Rails with Active Record Validations.
Addon by Esteban Arango Medina on 23rd August 2016
-