[users at bb.net] How to access global property from AngularJS www-frontend?
Alexey Demakov
demakov at ispras.ru
Thu Apr 20 11:30:25 UTC 2017
My www plugin requires some static info from configuration's global
properties. I've read 3.1.7. Configuration in AngularJS
<http://docs.buildbot.net/current/developer/config.html#configuration-in-angularjs>
but not found a solution. I found config constant but it contains not
all properties.
This constant is initialized in www/config.py:
IndexResource.renderIndex() method. I added my property and successfully
got it in AngularJS controller.
Is it possible to expose global property to AngularJS code without
modifying buildbot's code?
Regards, Aleksey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20170420/765b42ad/attachment.html>
More information about the users
mailing list