[Templates] load plot templates with require

Load templates with requirejs.

https://github.com/nasa/openmctweb/issues/673
This commit is contained in:
Pete Richards
2016-03-01 10:52:07 -08:00
parent 748673f99b
commit 96d9f8c194
3 changed files with 12 additions and 4 deletions

View File

@@ -47,6 +47,8 @@ define([
"text!./res/templates/menu-arrow.html",
"text!./res/templates/back-arrow.html",
"text!./res/templates/items/items.html",
"text!./res/templates/browse/object-properties.html",
"text!./res/templates/browse/inspector-region.html",
'legacyRegistry'
], function (
BrowseController,
@@ -74,6 +76,8 @@ define([
menuArrowTemplate,
backArrowTemplate,
itemsTemplate,
objectPropertiesTemplate,
inspectorRegionTemplate,
legacyRegistry
) {
"use strict";
@@ -226,11 +230,11 @@ define([
},
{
"key": "object-properties",
"templateUrl": "templates/browse/object-properties.html"
"template": objectPropertiesTemplate
},
{
"key": "inspector-region",
"templateUrl": "templates/browse/inspector-region.html"
"template": inspectorRegionTemplate
}
],
"services": [