Skip to content

Instantly share code, notes, and snippets.

@matiasfha
Created June 26, 2016 20:08
Show Gist options
  • Save matiasfha/3a5d51b671c06e401b4e9373b51fe671 to your computer and use it in GitHub Desktop.
Save matiasfha/3a5d51b671c06e401b4e9373b51fe671 to your computer and use it in GitHub Desktop.
module Components.Products.Model exposing (..)
type alias Product =
{id : Int
,image: String
,title: String
,description: String
,price: Int
,quality: String
}
module Model exposing (..)
import Exts.RemoteData exposing (..)
import Routing
import Components.Productos.Model exposing (Product)
type alias Model =
{ route: Routing.Route
, products: WebData (List Product)
}
initialModel : Routing.Route -> Model
initialModel route =
{ route = route
, products = NotAsked }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment