Created
December 12, 2015 23:49
-
-
Save desaroxx/f31096c25200cd5fe8e5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace pagecontroller { | |
class HomeController { | |
public static $inject: Array<string> = ["$timeout"]; | |
public pageTitle: string = "Home"; | |
private name: string = "John Doe"; | |
constructor(private $timeout: ng.ITimeoutService) {} | |
public sayHello(): void { | |
this.$timeout(() => { | |
console.log("HI " + this.makeItUpperCase(this.name)); | |
}, 10); | |
} | |
private makeItUpperCase(input: string): string { | |
return input.toUpperCase(); | |
} | |
} | |
angular.module("app", []).controller("homeCtrl", HomeController); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment