Categories
front-end

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. (function() { fetchData().then(bootstrapApplication); function fetchData() { var initInjector = angular.injector([“ng”]); var $http = initInjector.get(“$http”); […]

Categories
angular2

Angular 2 Resources

A list of resources that have helped me get up to speed with Angular 2. Working with HTTP Angular 2 Service Quick-Tip: Adding HttpModule How to watch for form changes in Angular 2? You cialis professional generic can use them in bathtub or under the table. Kamagra is buy cialis a popular and widely-recommended treatment […]

Categories
Go

Golang Resources

A list of resources that have helped me get familiar with Go and all its glory. Setting up the workspace Set your $GOPATH to point to your root folder /goapp Set your $GOBIN to point to $GOPATH/bin Create 3 folders in $GOPATH (src, pkg, bin) Create the main app folder with the convention of $GOPATH/src/github.com/{username}/goapp/main.go Working with JSON […]