mirror of
https://github.com/ryan-haskell/elm-spa.git
synced 2024-08-17 00:10:27 +03:00
Update 03-pages.md
This commit is contained in:
parent
464d5d215b
commit
b98a2c72ad
@ -243,15 +243,16 @@ Page.sandbox
|
||||
}
|
||||
|
||||
-- protected
|
||||
Page.protected.sandbox
|
||||
{ init : User -> Model
|
||||
, update : User -> Msg -> Model -> Model
|
||||
, view : User -> Model -> View Msg
|
||||
}
|
||||
Page.protected.sandbox :
|
||||
User ->
|
||||
{ init : Model
|
||||
, update : Msg -> Model -> Model
|
||||
, view : Model -> View Msg
|
||||
}
|
||||
```
|
||||
|
||||
When you are ready for user authentication, you can learn more about using `Page.protected` in the [authentication guide](/examples/04-authentication).
|
||||
|
||||
---
|
||||
|
||||
__Next up:__ [Requests](./04-requests)
|
||||
__Next up:__ [Requests](./04-requests)
|
||||
|
Loading…
Reference in New Issue
Block a user