Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(demo-app): resolve mapping paths in relative. #566

Merged
merged 1 commit into from
May 30, 2016

Conversation

devversion
Copy link
Member

@devversion devversion commented May 28, 2016

  • Currently, the demo app is mapping its core and components absolutely (/), which is working perfectly for the served application
  • This commit changes the absolute mapping paths to relative paths.

    This allows developers, to serve the demo-app in sub-directories (not only in the root).

Notice, that all other mappings in the configurations are also relative, so it will also restore consistency.

This is also required for some bundlers, for example SystemJS Builder is not able to build a bundle of the demo app, with absolute paths, because the baseURL may have changed.

This is a required commit, for the Live Preview (#533), because I'm planning to bundle the output, to accelerate deploy and load time.

References #553

* Currently, the demo app is mapping its core and components absolutely (`/`), which is working perfectly for the served application
* This commit changes the absolute mapping paths to relative paths.
  This allows developers, to serve the demo-app also in sub-directories.

Also this is required for some bundlers, for example SystemJS Builder is not able to build a bundle of the demo app, with absolute paths, because the
baseURL may be different.

References angular#553
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label May 28, 2016
@hansl hansl added the pr: lgtm label May 30, 2016
@hansl
Copy link
Contributor

hansl commented May 30, 2016

LGTM.

@hansl hansl merged commit 421828a into angular:master May 30, 2016
@devversion devversion deleted the fix/demo-app-relative-map branch May 31, 2016 11:50
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes PR author has agreed to Google's Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants