https://www.webcodegeeks.com/javascript/angular-js/learning-angular-expose-api-directives/
Learning Angular: Expose an API on your directives