[Templates] Require data table templates

...via text plugin
This commit is contained in:
Victor Woeltjen 2016-02-26 15:02:04 -08:00
parent 5c3d8508a2
commit 19b442cc0b
2 changed files with 6 additions and 6 deletions

View File

@ -25,14 +25,14 @@
* Module defining MCTDataTable. Created by shale on 06/22/2015. * Module defining MCTDataTable. Created by shale on 06/22/2015.
*/ */
define( define(
[], ['text!../../res/templates/mct-data-table.html'],
function () { function (dataTableTemplate) {
"use strict"; "use strict";
function MCTDataTable($window) { function MCTDataTable($window) {
return { return {
restrict: "E", restrict: "E",
templateUrl: "platform/features/events/res/templates/mct-data-table.html", template: dataTableTemplate,
scope: { scope: {
headers: "=", headers: "=",
rows: "=", rows: "=",

View File

@ -25,14 +25,14 @@
* Module defining MCTRTDataTable. Created by shale on 06/25/2015. * Module defining MCTRTDataTable. Created by shale on 06/25/2015.
*/ */
define( define(
[], ['text!../../res/templates/mct-rt-data-table.html'],
function () { function (dataTableTemplate) {
"use strict"; "use strict";
function MCTRTDataTable($window) { function MCTRTDataTable($window) {
return { return {
restrict: "E", restrict: "E",
templateUrl: "platform/features/rtevents/res/templates/mct-rt-data-table.html", template: dataTableTemplate,
scope: { scope: {
headers: "=", headers: "=",
rows: "=", rows: "=",