Skip to content

Commit

Permalink
Update README.md (#847)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Sokolov committed Apr 19, 2020
1 parent 12f0b7d commit 76a51ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vuepress/api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Localize the datetime of `value` with datetime format of `key`. The datetime for
If the datetime format of `key` not exist in `dateTimeFormats` option, fallback to depend on `fallbackLocale` option of `VueI18n` constructor.

:::danger Tip
Note that you need to guarantee this context equal to component instance in lifecycle methods (e.g. in `data` options, `const $n = this.$n.bind(this)`).
Note that you need to guarantee this context equal to component instance in lifecycle methods (e.g. in `data` options, `const $d = this.$d.bind(this)`).
:::

#### $n
Expand Down Expand Up @@ -116,7 +116,7 @@ If the second `format` argument specified as an object, it should have the follo
Any specified number format options will have priority over `numberFormats` of `VueI18n` constructor.

:::danger Tip
Note that you need to guarantee this context equal to component instance in lifecycle methods (e.g. in `data` options, `const $d = this.$d.bind(this)`).
Note that you need to guarantee this context equal to component instance in lifecycle methods (e.g. in `data` options, `const $n = this.$n.bind(this)`).
:::

### Injected properties
Expand Down

0 comments on commit 76a51ba

Please sign in to comment.