Currently, I am in the process of creating a custom directive using Angular 1.4.9 and TypeScript. The directive itself is complete, however, I am facing an issue when trying to import it into my app.ts file for registration.
This is how my directive is structured:
export module Helloworld{
export class NumpadTouchControl implements ng.IDirective{
}
}
And this is the content of my app.ts file:
import { NumpadTouchControl } from './directives/numpadTouchControl';
module Helloworld {
}
The problem arises at the start of my app.ts file where an error message stating: "Module ... has no exported member 'NumpadTouchControl'" is displayed. How can I resolve this issue and successfully import my directive?
It's worth noting that I am not utilizing webpack or browserify.