forked from muicss/mui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappbar.js
More file actions
34 lines (28 loc) · 953 Bytes
/
appbar.js
File metadata and controls
34 lines (28 loc) · 953 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
var babelHelpers = require('./babel-helpers.js');
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _angular = require('angular');
var _angular2 = babelHelpers.interopRequireDefault(_angular);
var moduleName = 'mui.appbar'; /**
* MUI Angular Appbar Component
* @module angular/appbar
*/
_angular2.default.module(moduleName, []).directive('muiAppbar', function () {
return {
restrict: 'AE',
transclude: true,
replace: true,
template: '<div class="mui-appbar"></div>',
link: function link(scope, element, attrs, controller, transcludeFn) {
// use transcludeFn to pass ng-controller on parent element
transcludeFn(scope, function (clone) {
element.append(clone);
});
}
};
});
/** Define module API */
exports.default = moduleName;
module.exports = exports['default'];