Writing AngularJS directives as TypeScript classes

Introduction TL;DR? Read the implementation details here. Note: This post was written for AngularJS 1.x. Angular 2+ has different conventions that make parts of »