Update a ton of things
This commit is contained in:
@@ -3,6 +3,7 @@ module Main exposing (..)
|
||||
import Html exposing (..)
|
||||
import Html.App
|
||||
import Html.Attributes exposing (..)
|
||||
import Html.Events exposing (onClick, onInput)
|
||||
|
||||
|
||||
type alias Model =
|
||||
@@ -63,13 +64,12 @@ view model =
|
||||
]
|
||||
, input
|
||||
[ class "search-query"
|
||||
-- TODO when we receive onInput, set the query in the model
|
||||
-- TODO onInput, set the query in the model
|
||||
, defaultValue model.query
|
||||
]
|
||||
[]
|
||||
, button [ class "search-button" ] [ text "Search" ]
|
||||
, ul [ class "results" ]
|
||||
(List.map viewSearchResult model.results)
|
||||
, ul [ class "results" ] (List.map viewSearchResult model.results)
|
||||
]
|
||||
|
||||
|
||||
|
||||
@@ -4,16 +4,16 @@ Part 4
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
elm package install
|
||||
elm-package install
|
||||
```
|
||||
|
||||
(Answer `y` at the prompt. In rare cases a known issue can cause the download
|
||||
to fail; in that case, just run `elm package install` again.)
|
||||
to fail; in that case, just run `elm-package install` again.)
|
||||
|
||||
## Building
|
||||
|
||||
```bash
|
||||
elm live Main.elm --open -- --output=elm.js
|
||||
elm-live Main.elm --open -- --output=elm.js
|
||||
```
|
||||
|
||||
## References
|
||||
|
||||
Reference in New Issue
Block a user