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

Improve documentation for locale import. #193

Merged
merged 1 commit into from
May 7, 2018
Merged

Conversation

davemecha
Copy link
Contributor

When I used the amLocale pipe, I was struggeling with getting the locale loaded. When I did something like

{{ myMoment | amLocale:'de' | amDateFormat:'MMMM' }}

to show the month of a date, I always got the english name of the month. After searching the issues, I found #149 (comment), what finally helped me. I checked my node_modules that moment was installed and just did the import. I didn't test in my project, if the manual installation of moment.js is necesssary on a clean project.

I think, it would improve the documentation, if this note is added.

When I used the amLocale pipe, I was struggeling with getting the locale loaded. When I did something like

```
{{ myMoment | amLocale:'de' | amDateFormat:'MMMM' }}
```

to thow the month of a date, I always got the english name of the month. After searching the issues, I found this comment urish#149 (comment), what finally helped me. I checked my node_modules that moment was installed and just did the import. I didn't test in my project, if the manual installation of moment.js is necesssary on a clean project.

I think, it would improve the documentation, if this note is added.
@urish urish merged commit 6dd8727 into urish:master May 7, 2018
@urish
Copy link
Owner

urish commented May 7, 2018

Awesome, thanks!

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