Being a beginner in TypeScript, I've noticed numerous examples demonstrating the use of Angular with TypeScript, all of which involve controller classes. As I delve deeper into it, I realize that I need to mention the injected services multiple times within the class declaration. Is there a way for me to develop an Angular controller without having to define a class? Ideally, something similar to what I can achieve using JavaScript:
module.controller('controller', function(service1) {DoSomething();});