forked from CuppaLabs/angular2-multiselect-dropdown
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmenu-item.js
More file actions
83 lines (83 loc) · 2.18 KB
/
menu-item.js
File metadata and controls
83 lines (83 loc) · 2.18 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import { Component, TemplateRef, ContentChild, ViewContainerRef, Input } from '@angular/core';
var Item = (function () {
function Item() {
}
return Item;
}());
export { Item };
Item.decorators = [
{ type: Component, args: [{
selector: 'c-item',
template: ""
},] },
];
/** @nocollapse */
Item.ctorParameters = function () { return []; };
Item.propDecorators = {
'template': [{ type: ContentChild, args: [TemplateRef,] },],
};
var Badge = (function () {
function Badge() {
}
return Badge;
}());
export { Badge };
Badge.decorators = [
{ type: Component, args: [{
selector: 'c-badge',
template: ""
},] },
];
/** @nocollapse */
Badge.ctorParameters = function () { return []; };
Badge.propDecorators = {
'template': [{ type: ContentChild, args: [TemplateRef,] },],
};
var Search = (function () {
function Search() {
}
return Search;
}());
export { Search };
Search.decorators = [
{ type: Component, args: [{
selector: 'c-search',
template: ""
},] },
];
/** @nocollapse */
Search.ctorParameters = function () { return []; };
Search.propDecorators = {
'template': [{ type: ContentChild, args: [TemplateRef,] },],
};
var TemplateRenderer = (function () {
function TemplateRenderer(viewContainer) {
this.viewContainer = viewContainer;
}
TemplateRenderer.prototype.ngOnInit = function () {
this.view = this.viewContainer.createEmbeddedView(this.data.template, {
'\$implicit': this.data,
'item': this.item
});
};
TemplateRenderer.prototype.ngOnDestroy = function () {
this.view.destroy();
};
return TemplateRenderer;
}());
export { TemplateRenderer };
TemplateRenderer.decorators = [
{ type: Component, args: [{
selector: 'c-templateRenderer',
template: ""
},] },
];
/** @nocollapse */
TemplateRenderer.ctorParameters = function () { return [
{ type: ViewContainerRef, },
]; };
TemplateRenderer.propDecorators = {
'data': [{ type: Input },],
'item': [{ type: Input },],
};
//# sourceMappingURL=menu-item.js.map