[Representation] Remove template tester

Remove template tester after verifying that mct-include/mct-representation
elements are added/removed to/from the DOM as appropriate.
This commit is contained in:
Victor Woeltjen 2015-10-28 16:02:52 -07:00
parent 5604bf6d69
commit ae0cb63a92
3 changed files with 0 additions and 49 deletions

View File

@ -1,17 +0,0 @@
{
"extensions": {
"routes": [
{
"when": "/templates",
"templateUrl": "templates.html"
}
],
"controllers": [
{
"implementation": "TemplateTestingController.js",
"key": "TTC",
"depends": [ "$scope", "objectService" ]
}
]
}
}

View File

@ -1,14 +0,0 @@
<div ng-controller="TTC">
<div style="border: 5px white solid">
<div>mct-include</div>
<input type="text" ng-model="ikey">
<mct-include key="ikey"></mct-include>
</div>
<div style="border: 5px pink solid">
<div>mct-representation</div>
<input type="text" ng-model="rkey">
<input type="text" ng-model="rid">
<mct-representation key="rkey" mct-object="obj"></mct-representation>
</div>
</div>

View File

@ -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];
});
});
};
});