Exercise: Storing Labels

In notebook:
Building Modern Web Apps
Created at:
2016-01-28
Updated:
2016-01-28
Tags:
libraries JavaScript backend
We want to show the labels for a repo on the repo-details page.
Check the documentation: developer.github.com/v3/issues/labels/
List all labels for this repository
​GET /repos/:owner/:repo/labels​ 
  1. Create a label model
  2. create a labels collection
  3. Attach that to the repo object
  4. Optionally render them on the page
To build this url you need to use ​.parent​ to reference the parent collection (in the ​url​ function)