// Success response
{
// Document's primary data - resource or collection of resources targeted by request
// (a.k.a. - either object or array of objects)
// Single resouce variant (null in case it is not available)
data: {
// Required
id: 'xyz' // Must be string - not required when the resource object originates at the client
source https://medium.com/square-corner-blog/deep-dive-on-ember-events-cf684fd3b808
talk https://www.youtube.com/watch?v=G9hXjjHFJVs
!!! DOM event listeners fire before Ember listeners
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Html exposing (..) | |
--Helper function from elm-list-extra | |
find : (a -> Bool) -> List a -> Maybe a | |
find predicate list = | |
case list of | |
[] -> | |
Nothing | |
first::rest -> |