mirror of
https://github.com/nasa/openmct.git
synced 2025-05-09 20:12:50 +00:00
[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:
parent
5604bf6d69
commit
ae0cb63a92
@ -1,17 +0,0 @@
|
|||||||
{
|
|
||||||
"extensions": {
|
|
||||||
"routes": [
|
|
||||||
{
|
|
||||||
"when": "/templates",
|
|
||||||
"templateUrl": "templates.html"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"controllers": [
|
|
||||||
{
|
|
||||||
"implementation": "TemplateTestingController.js",
|
|
||||||
"key": "TTC",
|
|
||||||
"depends": [ "$scope", "objectService" ]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
@ -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>
|
|
@ -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];
|
|
||||||
});
|
|
||||||
});
|
|
||||||
};
|
|
||||||
});
|
|
Loading…
x
Reference in New Issue
Block a user