Right now controllers, directives and services are using classes, but config/run and filters use functions exclusively. I think it would feel more natural in TypeScript to also support class definitions for those.
For example:
MyApp/Configuration.ts
module MyApp {
//@NgConfig
class Configuration {
constructor($routeProvider: ng.IRouteProvider) {
// Configure routes here
}
}
}
MyApp/Startup.ts
module MyApp {
//@NgRun
class Startup {
constructor($translate: ng.translate.ITranslateService) {
// Set translation at runtime
}
}
}
Right now controllers, directives and services are using classes, but config/run and filters use functions exclusively. I think it would feel more natural in TypeScript to also support class definitions for those.
For example:
MyApp/Configuration.ts
MyApp/Startup.ts
MyApp/TruncateFilter.ts
Also, there are a few module methods which have no annotation at the moment. Those could look something like this:
MyApp/AFactory.ts
MyApp/AProvider.ts
MyApp/MyApp.ts
MyApp/SomeAnimationFactory.ts
Some of these may be wrong I am still new to TypeScript but bear with me ^^
Let me know what you think!
edit: updated title and added factory/provider/value/constant/animation