I found one solution for my problem on the internet, but i have a problem that i dont know how to overwrite this:
restrict: 'A',
scope: {
file: '=',
fileName: '='
},
into TypeScript.
I have tried this:
constructor($scope: ng.IScope) {
var directive: ng.IDirective = {};
directive.scope = {
file: '=',
fileName: '='
}
}
But it doesnt help, i still have an error:
The property 'file' does not exist on value of type 'ng.IScope'.
Used this example: http://jsfiddle.net/lsiv568/fsfPe/10/
Maybe (or probably) I am doing something wrong and I have to fix this error in another way, but I hope that you will lead me to the right solution.