From 7a7bf3c6a0cc743da910913c1762b5aecbb5339e Mon Sep 17 00:00:00 2001 From: Alex Heneveld Date: Thu, 24 Jan 2019 15:34:18 +0000 Subject: [PATCH] tables should run with their own scope without this if you put _two_ tables in the same parent controller view they collide on their data and have their own data --- ui-modules/utils/table/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ui-modules/utils/table/index.js b/ui-modules/utils/table/index.js index 9419b4d40..bf12ef28e 100644 --- a/ui-modules/utils/table/index.js +++ b/ui-modules/utils/table/index.js @@ -103,6 +103,7 @@ export function brTableDirective($log) { link: link, controller: ['$templateCache', 'brUtilsGeneral', controller], controllerAs: 'ctrl', + scope: true, templateUrl: function(element, attrs) { return attrs.templateUrl || TEMPLATE_CONTAINER_URL; }