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

angular doc update #866

Merged
merged 7 commits into from
May 29, 2018
Merged
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions docs/media/angular_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,3 +263,18 @@ onAlbumImageSelected( event ) {
### Custom Styles

You can use custom styling for AWS Amplify components. Just import your custom *styles.css* that overrides the default styles which can be found in `/node_modules/aws-amplify-angular/theme.css`.

## Angular 6 Support

Currently, the newest version of Angular (6.x) does not provide the shim for the `global` object, which was provided in previous versions. Specific AWS Amplify dependencies rely on this shim. While we evaluate the best path forward to address this issue, you have a couple of options for re-creating the shim in your Angular 6 app to make it compatible with Amplify.

1. Add the following to your polyfills.ts: ```(window as any).global = window;```.

2. Add the following script to your index.html ```<head>``` tag:
```
<script>
if (global === undefined) {
var global = window;
}
</script>
```