-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathchunk-OWJMK3XG.js
10 lines (10 loc) · 2.25 KB
/
chunk-OWJMK3XG.js
1
2
3
4
5
6
7
8
9
10
import{d as b,g as C}from"./chunk-AFSPN6ZB.js";import{A as s,G as f,I as t,J as n,K as a,Q as F,T as e,V as u,X as S,e as m,l as d,sa as g,u as l,v as p,ya as v,z as h,za as E}from"./chunk-2YK3DJ22.js";var D=(()=>{class i{constructor(o){this.gtagService=o,this.placeholder$=new m("\u8FD9\u662Fplaceholder"),this.gtagService.trackPage({page_name:"placeholderStr Director"})}ngOnInit(){}changeObservableContent(){let o=this.placeholder$.value==="\u8FD9\u662Fplaceholder"?"This is placeholder":"\u8FD9\u662Fplaceholder";this.placeholder$.next(o),this.gtagService.trackButton({button_name:"\u66F4\u6539\u89C2\u5BDF\u8005\u5BF9\u8C61\u7684\u5185\u5BB9",page_name:"placeholderStr Director"})}static{this.\u0275fac=function(r){return new(r||i)(p(E))}}static{this.\u0275cmp=h({type:i,selectors:[["app-placeholder-str-demo"]],standalone:!1,decls:26,vars:7,consts:[["nbPlaceholder","\u8FD9\u662Fplaceholder"],[3,"click"],[3,"nbPlaceholder"]],template:function(r,c){r&1&&(t(0,"h2"),e(1,"\u9002\u7528\u4E8Eplaceholder\u7684\u503C\u4F1A\u6539\u53D8\uFF0C\u53C8\u4E0D\u60F3\u5237\u65B0\u7684\u573A\u666F\u7684\u573A\u666F"),n(),t(2,"h4"),e(3,"\u5F53\u5185\u5BB9\u662F\u5B57\u7B26\u4E32\u65F6\uFF0C\u6B63\u5E38\u663E\u793A"),n(),a(4,"input",0),t(5,"h5"),e(6,"\u4EE3\u7801"),n(),t(7,"pre"),e(8," "),t(9,"code"),e(10),n(),e(11,`
`),n(),a(12,"hr"),t(13,"h4"),e(14),n(),t(15,"button",1),F("click",function(){return c.changeObservableContent()}),e(16,"\u66F4\u6539\u89C2\u5BDF\u8005\u5BF9\u8C61\u7684\u5185\u5BB9"),n(),a(17,"input",2),t(18,"h5"),e(19,"\u4EE3\u7801"),n(),t(20,"pre"),e(21," "),t(22,"code"),e(23),n(),e(24,`
`),n(),a(25,"hr")),r&2&&(l(10),u(`
`,'<input nbPlaceholder="\u8FD9\u662Fplaceholder">',`
`),l(4),u("\u5F53\u5185\u5BB9\u662FObservable","<string>",""),l(3),f("nbPlaceholder",c.placeholder$),l(6),S(`
`,"//ts",`
`,"placeholder$ = new BehaviorSubject('\u8FD9\u662Fplaceholder');",`
`,"//html",`
`,'<input [nbPlaceholder]="placeholder$">',`
`))},dependencies:[b],encapsulation:2,changeDetection:0})}}return i})();var B=[{path:"",component:D}],A=(()=>{class i{static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275mod=s({type:i})}static{this.\u0275inj=d({imports:[g,C,v.forChild(B)]})}}return i})();export{A as PlaceholderStrDemoModule};