Controller will be something like:
class myCtrl
{
constructor( $scope )
{
$scope.firstName = "John";
$scope.lastName = "Doe";
}
}
And with module it will be something like
module myApp{
export class myCtrl{
static $inject = ["$scope"];
constructor( $scope: any)
{
$scope.firstName = "John";
$scope.lastName = "Doe";
}
}
}
$inject method specify the parameters that angular will inject in the class constructor. like $scope in our example you can inject services etc also
Now you can use it as
angular.module('myApp', []).controller('myCtrl',myApp.myCtrl);