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: add baseUrl input instead of assuming what it should be #38

Merged
merged 4 commits into from
Jun 7, 2019

Conversation

alexw10
Copy link

@alexw10 alexw10 commented Jun 6, 2019

this mimics the change set here:
https://github.com/danilowoz/react-content-loader/pull/144/files

I think this is now more proper instead of assuming what the baseUrl should be for the applications we now have them pass it in.

I think this is a potential breaking change for applications so may want to make this a 3.0.0 version?
Will leave this up to you though.

Tested this in my companies application and it all now works properly.

Let me know if need anything further.

README.md Outdated
@@ -85,6 +85,8 @@ export class AppModule {}
| Input | Type | Default | Description |
| ------------------- | ------- | ----------------- | ------------------------------------------------- |
| animate | boolean | `true` | `false` to render with no animation |
| baseUrl | string | `` | Required if you're using `<base url="/" />` in your `<head/>`. Defaults to an empty string. This prop is commom used as: `<ContentLoader baseUrl={window.location.pathname} />` which will fill the svg attribute with the relative path. Related [#93](https://github.com/danilowoz/react-content-loader/issues/93).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change it to Angular component syntax.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@NetanelBasal NetanelBasal merged commit 6a33a2c into ngneat:master Jun 7, 2019
@NetanelBasal
Copy link
Member

@alexw10 thanks. Could you please fix the README file? The table is broken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants