-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathchunk-6YV7AFQI.js
More file actions
74 lines (71 loc) · 2.71 KB
/
chunk-6YV7AFQI.js
File metadata and controls
74 lines (71 loc) · 2.71 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
import {
HighlightDirective
} from "./chunk-YVDGH5GJ.js";
import {
Component,
__name,
__publicField,
setClassMetadata,
ɵsetClassDebugInfo,
ɵɵadvance,
ɵɵdefineComponent,
ɵɵelementEnd,
ɵɵelementStart,
ɵɵproperty,
ɵɵtext
} from "./chunk-2CX5BJWG.js";
// src/content/examples/attribute-directives/src/app/app.component.1.ts
var _AppComponent = class _AppComponent {
color = "yellow";
};
__name(_AppComponent, "AppComponent");
__publicField(_AppComponent, "\u0275fac", /* @__PURE__ */ __name(function AppComponent_Factory(__ngFactoryType__) {
return new (__ngFactoryType__ || _AppComponent)();
}, "AppComponent_Factory"));
__publicField(_AppComponent, "\u0275cmp", /* @__PURE__ */ \u0275\u0275defineComponent({ type: _AppComponent, selectors: [["app-root"]], decls: 10, vars: 2, consts: [["appHighlight", ""], ["appHighlight", "yellow"], [3, "appHighlight"]], template: /* @__PURE__ */ __name(function AppComponent_Template(rf, ctx) {
if (rf & 1) {
\u0275\u0275elementStart(0, "h1");
\u0275\u0275text(1, "My First Attribute Directive");
\u0275\u0275elementEnd();
\u0275\u0275elementStart(2, "p", 0);
\u0275\u0275text(3, "Highlight me!");
\u0275\u0275elementEnd();
\u0275\u0275elementStart(4, "p", 1);
\u0275\u0275text(5, "Highlighted in yellow");
\u0275\u0275elementEnd();
\u0275\u0275elementStart(6, "p", 2);
\u0275\u0275text(7, "Highlighted in orange");
\u0275\u0275elementEnd();
\u0275\u0275elementStart(8, "p", 2);
\u0275\u0275text(9, "Highlighted with parent component's color");
\u0275\u0275elementEnd();
}
if (rf & 2) {
\u0275\u0275advance(6);
\u0275\u0275property("appHighlight", "orange");
\u0275\u0275advance(2);
\u0275\u0275property("appHighlight", ctx.color);
}
}, "AppComponent_Template"), dependencies: [HighlightDirective], encapsulation: 2 }));
var AppComponent = _AppComponent;
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(AppComponent, [{
type: Component,
args: [{ selector: "app-root", imports: [HighlightDirective], template: `<!-- #docregion -->
<h1>My First Attribute Directive</h1>
<!-- #docregion applied -->
<p appHighlight>Highlight me!</p>
<!-- #enddocregion applied -->
<p appHighlight="yellow">Highlighted in yellow</p>
<p [appHighlight]="'orange'">Highlighted in orange</p>
<p [appHighlight]="color">Highlighted with parent component's color</p>
` }]
}], null, null);
})();
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(AppComponent, { className: "AppComponent", filePath: "src/content/examples/attribute-directives/src/app/app.component.1.ts", lineNumber: 10 });
})();
export {
AppComponent
};
//# sourceMappingURL=chunk-6YV7AFQI.js.map