From 41ba1c4c72ae6d281d8c2c6cd1df3f4493720949 Mon Sep 17 00:00:00 2001 From: Eric Mendes Dantas Date: Mon, 5 Oct 2015 15:34:31 -0300 Subject: [PATCH] refactor(controller_typescript) use this instead of $scope --- templates/typescript/controller.ts | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/templates/typescript/controller.ts b/templates/typescript/controller.ts index 7a91b6894..c461e28e0 100644 --- a/templates/typescript/controller.ts +++ b/templates/typescript/controller.ts @@ -3,19 +3,12 @@ 'use strict'; module <%= scriptAppName %> { - export interface I<%= classedName %>Scope extends ng.IScope { - awesomeThings: any[]; - } - export class <%= classedName %>Ctrl { - - constructor (private $scope: I<%= classedName %>Scope) { - $scope.awesomeThings = [ + public awesomeThings: string[] = [ 'HTML5 Boilerplate', 'AngularJS', 'Karma' - ]; - } + ]; } }