var phonecatApp = angular . module ( 'phonecatApp' , [ ] ) ; interface IScope { phones : IPhone [ ] ; } interface IPhone { name : string ; snippet : string ; } class PhoneListController { myScope : IScope ; constructor ( $scope , $http , Phone ) { this . myScope = $scope ; this . myScope . phones = Phone . query ( ) ; $scope . orderProp = 'age' ; _ . bindAll ( this , 'GetPhonesSuccess' ) ; } GetPhonesSuccess ( data ) { this . myScope . phones = data ; } }