When Making a Directive for AngularJS
Worth Reading: Especially this at the very bottom of that page: By ‘expose an API’, they mean ‘add some this.doSomething() {…} functions to the controller that are reachable from outside the controller’. Like public class methods. If you’re not…