J
jts-law
Guest
Edsel, I tried this approach and can't get it to work. Since my data changes based on a dropdown on the landing page, I decided to not try to bind the variable and instead simply try to populate the custom HTML element. I can't get this to work either. Also, I should have mentioned that I'm using KUIB 2.0.0.75. This is what I have so far: In KUIB, I have a blank view with a Custom HTML component. The Id is "lblLookupsCurrentDB" and the HTML is " " In my controller constructor (in controller.public.js) I have the following: this.domainService.getCurrentDomain().then(() => { console.log('[ParametersLookupsCtrl] Current domain: ' + this.domainService.currentName); this.$components.lblLookupsCurrentDB.options.html = this.domainService.currentName; }); The landing page has a dropdown that sets the domain via the domainService service. If I start on the landing page, when I go to the page with the above code, it works fine. My issue is when I start on this page (or refresh the browser on this page), my text doesn't display. If I start on this page, go to any other page, then go back to this page it then displays. I think it's a timing issue because the call to getCurrentDomain() performs an $http get so the value isn't set immediately. It seems like I should be able to bind them so I could go back to trying this as well. I'll take anything that will make it work. Thoughts? Louis
Continue reading...
Continue reading...