HIDE PLAYLIST

Loading Data from the Server


Let's stop hardcoding our initial state and fetch it from the server instead.

In this lesson you will learn:

  • Set up basic data fetching
  • Leverage the afterCreate lifecycle hook to automatically run any setup logic a model instance needs to do after creation
Please take a moment to tell your friends:

You must be a PRO Member to view code