Page 2 of 21

Make an API Request Before Bootstrapping Angular Application

In a recent headless angular application, we needed to make an api request before the application was bootstrapped. Below is a code sample of how it was achieved. This code was placed before the closing <body> tags of an index.html file.


Angular 2 Resources

A list of resources that have helped me get up to speed with Angular 2.

Working with HTTP


Golang Resources

A list of resources that have helped me get familiar with Go and all its glory.

Setting up the workspace
  1. Set your $GOPATH to point to your root folder /goapp
  2. Set your $GOBIN to point to $GOPATH/bin
  3. Create 3 folders in $GOPATH (src, pkg, bin)
  4. Create the main app folder with the convention of $GOPATH/src/{username}/goapp/main.go
Working with JSON

© 2017 Aldo Lugo

Theme by Anders NorenUp ↑