From GandalfLife, 3 Months ago, written in JavaScript.
Embed
  1. export class AppModule {
  2. constructor(private userService: UserService){
  3.     this.userService.connect(function(){
  4.       console.log('Connected');
  5.     });
  6.   }
  7. }