Get Angular directive name from TypeScript
<p>I implemented next AngularJS directive:</p>

<pre><code>export module Directives {

    export class PasswordsMatch implements ng.IDirective {

        public static Factory(name: string) : ng.IDirectiveFactory {
            return () =&gt; new PasswordsMatch();
        }

        require = 'ngModel';            
        link = (scope: ng.IScope, element: ng.IAugmentedJQuery, attrs: Attributes): void =&gt; {
            // how to get directive name here?
        };
    }
}
</code></pre>

<p>which is registered in another script file as:</p>

<pre><code>class Application {
    private app: ng.IModule;

    constructor() {     

        // Controllers

        // Directives           
        this.app.directive('ngPasswordsMatch', Directives.PasswordsMatch.Factory());
    }        
}
</code></pre>

<p>Is it possible to get directive name inside link function without passing directive name to Factory function (I don't want to duplicate directive name)?</p>