{{ messages[0].message }}
Controller and view communication
I would love to mimic a real world Adonis work cycle. Fetch (mock) data in the controller, pass it to the view, and display this data using our templating engine. This should be fun. Let's dive in.
{{ comment.user.name }} {{ comment.created_at }}
{{ comment.likes.length }}
{{ childComment.user.name }} {{ childComment.created_at }}
{{ childComment.likes.length }}