Files
stf-DeviceFarmer/res/app/components/stf/timelines/timelines-directive.js
Gunther Brunner 1eb6af0119 Replaced old jade with new pug.
Using temporarily npm-shrinkwrap since `template-html-loader` uses an old `consolidate.js` version which doesn't support `pug`.
Follow here: https://github.com/jtangelder/template-html-loader/issues/8
2016-08-05 18:24:30 +09:00

13 lines
310 B
JavaScript

module.exports = function timelinesDirective(Timelines) {
return {
restrict: 'AE',
replace: false,
scope: {},
template: require('./timelines.pug'),
link: function(scope) {
scope.cssPrefix = Timelines.options.cssPrefix
scope.notifications = Timelines.notifications
}
}
}