I'm trying to learn both TypeScript and Angular (and thus JavaScript).
Going through the Angular tutorials, I see they do stuff like this:
In normal javascript:
function CreateCtrl($scope, $location, Project){
// do stuff
}
For full example, see the "Wire up a backend" project.js example on the Angular homepage.
The kicker is, those parameters could be in any order (or not there at all), and Project is actually a user defined variable/type. The Angular framework is able to map the parameters to actual objects.
So now to Typescript, how can I recreate this type of functionality? I would like to describe Angular's behavior in some way, to let me wrap it in Typescript (strongly type this flexible property injection).