Skip to content
This repository has been archived by the owner on Mar 22, 2019. It is now read-only.

Commit

Permalink
Update v2.x.html.md
Browse files Browse the repository at this point in the history
  • Loading branch information
locks authored Sep 26, 2017
1 parent 041353c commit cce4df7
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions source/deprecations/v2.x.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -1037,3 +1037,52 @@ export default Controller {
content: alias('model')
}
```
### Upcoming deprecations
#### Ember.String#loc
##### until: 3.0.0
##### id: ember-string.loc
Use a localization addon, like ember-i18n or ember-intl
#### Ember.String#fmt
##### until: 3.0.0
##### id: ember-string.fmt
Use a proper thing.
#### Ember.String prototype extensions
##### until: 3.0.0
##### id: ember-string.prototype_extensions
`"hello".capitalize()` to `capitalize("hello")`.
#### Ember.String imports
##### until: 3.0.0
##### id: ember-string.module_api
```
ember install @ember/string
```
Tired:
```
import Ember from 'ember';

Ember.String.capitalize("hello");
```
Wired:
```
import { capitalize } from '@ember/string';

capitalize("hello");
```

0 comments on commit cce4df7

Please sign in to comment.