summaryrefslogtreecommitdiff
path: root/tests/examplefiles/typescript_example
diff options
context:
space:
mode:
Diffstat (limited to 'tests/examplefiles/typescript_example')
-rw-r--r--tests/examplefiles/typescript_example39
1 files changed, 0 insertions, 39 deletions
diff --git a/tests/examplefiles/typescript_example b/tests/examplefiles/typescript_example
deleted file mode 100644
index 760e2543..00000000
--- a/tests/examplefiles/typescript_example
+++ /dev/null
@@ -1,39 +0,0 @@
-class Animal {
- constructor(public name) { }
- move(meters) {
- alert(this.name + " moved " + meters + "m.");
- }
-}
-
-class Snake extends Animal {
- constructor(name) { super(name); }
- move() {
- alert("Slithering...");
- super.move(5);
- }
-}
-
-class Horse extends Animal {
- constructor(name) { super(name); }
- move() {
- alert("Galloping...");
- super.move(45);
- }
-}
-
-@View({
- templateUrl: "app/components/LoginForm.html",
- directives: [FORM_DIRECTIVES, NgIf]
-})
-@Component({
- selector: "login-form"
-})
-class LoginForm {
-
-}
-
-var sam = new Snake("Sammy the Python")
-var tom: Animal = new Horse("Tommy the Palomino")
-
-sam.move()
-tom.move(34)