When using TypeScript classes to create directives, the instance methods such as link need to be explicitly bound to the instance in the constructor due to the way AngularJS invokes them. We should add the code in the constructors to do this automatically.
When using TypeScript classes to create directives, the instance methods such as link need to be explicitly bound to the instance in the constructor due to the way AngularJS invokes them. We should add the code in the constructors to do this automatically.