From ae0cb63a92ad610bc8bf0dc5f3afa8429a60999c Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Wed, 28 Oct 2015 16:02:52 -0700 Subject: [PATCH] [Representation] Remove template tester Remove template tester after verifying that mct-include/mct-representation elements are added/removed to/from the DOM as appropriate. --- example/templates/bundle.json | 17 ----------------- example/templates/res/templates.html | 14 -------------- .../templates/src/TemplateTestingController.js | 18 ------------------ 3 files changed, 49 deletions(-) delete mode 100644 example/templates/bundle.json delete mode 100644 example/templates/res/templates.html delete mode 100644 example/templates/src/TemplateTestingController.js diff --git a/example/templates/bundle.json b/example/templates/bundle.json deleted file mode 100644 index 38989c408c..0000000000 --- a/example/templates/bundle.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extensions": { - "routes": [ - { - "when": "/templates", - "templateUrl": "templates.html" - } - ], - "controllers": [ - { - "implementation": "TemplateTestingController.js", - "key": "TTC", - "depends": [ "$scope", "objectService" ] - } - ] - } -} diff --git a/example/templates/res/templates.html b/example/templates/res/templates.html deleted file mode 100644 index ac2747acaa..0000000000 --- a/example/templates/res/templates.html +++ /dev/null @@ -1,14 +0,0 @@ -
-
-
mct-include
- - -
- -
-
mct-representation
- - - -
-
diff --git a/example/templates/src/TemplateTestingController.js b/example/templates/src/TemplateTestingController.js deleted file mode 100644 index ccb4223603..0000000000 --- a/example/templates/src/TemplateTestingController.js +++ /dev/null @@ -1,18 +0,0 @@ -/*global define*/ -define([], function () { - 'use strict'; - - return function TemplateTestingController($scope, objectService) { - $scope.ikey = ''; - $scope.rkey = ''; - $scope.rid = ''; - $scope.obj = undefined; - - $scope.$watch('rid', function (id) { - $scope.obj = undefined; - objectService.getObjects([id]).then(function (objs) { - $scope.obj = objs[id]; - }); - }); - }; -});