[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

@ -27,6 +27,7 @@ define([
"./src/policies/PlotViewPolicy",
"./src/PlotOptionsController",
"text!./res/templates/plot.html",
"text!./res/templates/plot-options-browse.html",
'legacyRegistry'
], function (
MCTChart,
@ -34,6 +35,7 @@ define([
PlotViewPolicy,
PlotOptionsController,
plotTemplate,
plotOptionsBrowseTemplate,
legacyRegistry
) {
"use strict";
@ -101,7 +103,7 @@ define([
"representations": [
{
"key": "plot-options-browse",
"templateUrl": "templates/plot-options-browse.html"
"template": plotOptionsBrowseTemplate
}
]
}