This is an automated email from the ASF dual-hosted git repository.

tbouron pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brooklyn-ui.git


The following commit(s) were added to refs/heads/master by this push:
     new 7a7bf3c  tables should run with their own scope
     new 49c5f56  Merge pull request #119 from ahgittin/fix-table
7a7bf3c is described below

commit 7a7bf3c6a0cc743da910913c1762b5aecbb5339e
Author: Alex Heneveld <alex.henev...@cloudsoftcorp.com>
AuthorDate: Thu Jan 24 15:34:18 2019 +0000

    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 9419b4d..bf12ef2 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;
         }

Reply via email to