1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 02:29:26 +02:00

Refactored device context menu to its own directive.

Now works in standalone also.
This commit is contained in:
Gunther Brunner 2014-09-25 17:10:31 +09:00
parent f705cd60a7
commit c81cd75a50
10 changed files with 86 additions and 30 deletions

View file

@ -0,0 +1,20 @@
module.exports = function deviceContextMenuDirective($window) {
return {
restrict: 'EA',
replace: false,
//scope: {
// control: '&',
// device: '&'
//},
transclude: true,
template: require('./device-context-menu.jade'),
link: function (scope, element, attrs) {
//var device = scope.device()
//var control = scope.control()
scope.windowClose = function () {
$window.close()
}
}
}
}