You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: make system config available as separate file #429
I'm creating an App Shell broccoli plugin that needs to access a project's System config to properly load dependencies of an app component when pre-compiling. Right now, I would have to parse index.html to find the system configuration. Ideally, there would be a file I could import instead, i.e. system.config.json.
This also brings up another challenge, which is that my plugin doesn't know how to locate libraries being loaded via script tags instead of by System. I would have to manually augment the System configuration in my bundle to include angular, http, router, and rxjs.
@Brocco in my case, that would work (except from the System.import included at the end, which would cause problems). It would be even better if the config could be a JSON file, so add-ons could inspect it and modify it before calling System.config
FYI, I have the separation into a separate file implemented in the style guide PR #427 but would be ideal if someone could go the extra step and get that into a JSON file
Activity
jeffbcross commentedon Apr 12, 2016
This also brings up another challenge, which is that my plugin doesn't know how to locate libraries being loaded via script tags instead of by
System. I would have to manually augment theSystemconfiguration in my bundle to include angular, http, router, and rxjs.Brocco commentedon Apr 13, 2016
Were you looking for more than just this:
index.html
system-config.ts
jeffbcross commentedon Apr 13, 2016
@Brocco in my case, that would work (except from the
System.importincluded at the end, which would cause problems). It would be even better if the config could be a JSON file, so add-ons could inspect it and modify it before callingSystem.configBrocco commentedon Apr 14, 2016
FYI, I have the separation into a separate file implemented in the style guide PR #427 but would be ideal if someone could go the extra step and get that into a JSON file
chore: update templates to align with the style guide
chore: update templates to align with the style guide
chore: update templates to align with the style guide
chore: update templates to align with the style guide
chore: update templates to align with the style guide
chore: update templates to align with the style guide
chore: update templates to align with the style guide
chore: update templates to align with the style guide
chore: update templates to align with the style guide
chore: update templates to align with the style guide
Brocco commentedon Apr 18, 2016
Resolved via #427
angular-automatic-lock-bot commentedon Sep 5, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.