Skip to content
This repository was archived by the owner on Dec 10, 2022. It is now read-only.

Commit b2b24dc

Browse files
committed
added selection and config bindings
1 parent 7a0876c commit b2b24dc

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/js/directives/directives.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,16 @@
55
app.directive('angularFilemanager', ['$parse', 'fileManagerConfig', function($parse, fileManagerConfig) {
66
return {
77
restrict: 'EA',
8-
templateUrl: fileManagerConfig.tplPath + '/main.html'
8+
templateUrl: fileManagerConfig.tplPath + '/main.html',
9+
scope:{
10+
selectedItems: '=?',
11+
config: '=?'
12+
},
13+
link: function(scope, element, attrs) {
14+
scope.onSelectionChange = function(data){
15+
scope.selectedItems = data;
16+
}
17+
}
918
};
1019
}]);
1120

0 commit comments

Comments
 (0)