TL;DR
In the previous post, we learned Elm Record Type, an Elm implementation of key/value data pairs. Elm Record Type is a basic block for creating Elm Record Model. This post is part of the functional language series, and it is based on a remarkable book Programming Elm Build Safe and Maintainable Front-End Applications by Jeremy Fairbank.
Elm Record Model
Elm Record Model handles Elm application data. As our PicShare application is about displaying and commenting pictures, we will create a Record Model for photos. We created Elm Record type annotation initialModel
and one Record instance of that model that represents one instance of a picture in our Picshare
application.
Recompile Picshare
application and we are ready to create View
for our Picshare
application.