Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save ilikerobots/bb83a8daac6490b9c65d782cdcb124cb to your computer and use it in GitHub Desktop.

Select an option

Save ilikerobots/bb83a8daac6490b9c65d782cdcb124cb to your computer and use it in GitHub Desktop.
SiteStructureService exceprt
@Injectable()
class SiteStructureService {
static final List<ArticleSection> structure = <ArticleSection>[
new ArticleSection("About Kittens")
..articles.add(new Article("Fuzzy"))
..articles.add(new Article("Warm"))
..articles.add(new Article("Curious")),
new ArticleSection("Anatomy")
..articles.add(new Article("Paws"))
..articles.add(new Article("Whiskers"))
..articles.add(new Article("Tail")),
[...]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment