Open DamianEdwards opened 10 years ago
Might make more sense to register controllers using the interface they implement (if any) instead of the class name. Means that HTML views would refer to them by the interface name, e.g.
module MyApp { interface IHelloViewModel { message: string; } class HelloController implements IHelloViewModel { constructor() { this.message = "Hello"; } public message: string; } }
<div ng-controller="MyApp.IHelloViewModel as vm"> {{ vm.message }} </div>
Might make more sense to register controllers using the interface they implement (if any) instead of the class name. Means that HTML views would refer to them by the interface name, e.g.