Created
June 26, 2016 20:08
-
-
Save matiasfha/3a5d51b671c06e401b4e9373b51fe671 to your computer and use it in GitHub Desktop.
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
module Components.Products.Model exposing (..) | |
type alias Product = | |
{id : Int | |
,image: String | |
,title: String | |
,description: String | |
,price: Int | |
,quality: String | |
} |
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
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