preparing to port example 2
This commit is contained in:
parent
78dc0461d7
commit
ff9908895f
|
@ -25,7 +25,7 @@ type alias Model =
|
|||
type alias Flags = {}
|
||||
|
||||
init : (List Person) -> Flags -> ( Model, Cmd Msg )
|
||||
init people flags =
|
||||
init people _ =
|
||||
let
|
||||
model =
|
||||
{ people = people
|
||||
|
|
|
@ -23,17 +23,17 @@ Then navigate to `1-presidents.elm` or `2-travel.elm` from [localhost:8000](http
|
|||
To see the examples *with* CSS, run the following commands:
|
||||
|
||||
```bash
|
||||
git clone https://github.com/evancz/elm-sortable-table.git
|
||||
git clone https://github.com/NoRedInk/elm-sortable-table.git
|
||||
cd elm-sortable-table
|
||||
cd examples
|
||||
elm-make 1-presidents.elm --yes --output=elm.js
|
||||
elm make 1-presidents.elm --output=elm.js
|
||||
elm-reactor
|
||||
```
|
||||
|
||||
Then open [localhost:8000/index.html](http://localhost:8000/index.html) in your browser. That HTML file loads in some CSS and whatever code is in `elm.js`. So if you want to see the second example with CSS, you can compile it like this:
|
||||
|
||||
```bash
|
||||
elm-make 2-travel.elm --yes --output=elm.js
|
||||
elm make 2-travel.elm --output=elm.js
|
||||
```
|
||||
|
||||
As you make changes, you will want to recompile the Elm code with `elm-make`.
|
|
@ -4795,7 +4795,7 @@ var elm$json$Json$Decode$errorToStringHelp = F2(
|
|||
var elm$core$Platform$Cmd$batch = _Platform_batch;
|
||||
var elm$core$Platform$Cmd$none = elm$core$Platform$Cmd$batch(_List_Nil);
|
||||
var author$project$Main$init = F2(
|
||||
function (people, flags) {
|
||||
function (people, _n0) {
|
||||
var model = {
|
||||
people: people,
|
||||
query: '',
|
||||
|
|
|
@ -9,11 +9,11 @@
|
|||
"NoRedInk/elm-sortable-table": "1.0.0",
|
||||
"elm/browser": "1.0.1",
|
||||
"elm/core": "1.0.2",
|
||||
"elm/html": "1.0.0"
|
||||
"elm/html": "1.0.0",
|
||||
"elm/time": "1.0.0"
|
||||
},
|
||||
"indirect": {
|
||||
"elm/json": "1.1.2",
|
||||
"elm/time": "1.0.0",
|
||||
"elm/url": "1.0.0",
|
||||
"elm/virtual-dom": "1.0.2"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue