You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2019/06/16 20:29:45 UTC
[GitHub] [royale-asjs] carlosrovira opened a new issue #427: inject_html
does not work in modules
carlosrovira opened a new issue #427: inject_html does not work in modules
URL: https://github.com/apache/royale-asjs/issues/427
Hi,
putting the pieces together for the next blog example about modules I found "inject_html" does not work for modules. If you think about it is normal, since inject adds to the html template, so if the class with the inject is in a module, the app does not know about it.
Only if we improve modules with the capability to write the inject lines in the html template this could be fixed.
Don't know how hard this could be.
In the BE0013 example I want to use Material Icons that use inject_htnk to add the Material Icons line to the html and make the icons available to the app. To work around the problem I put a import in the App:
```
import MaterialIconType; MaterialIconType;
```
This means as well add the library dependency in the Application instead of the module, defeating a bit the module purpose.
In this way the inject line is in the final html and when I use a font icon in a module I get the proper icon.
Can we solve this in some way?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services