Skip to content

Commit

Permalink
ja: update faq/external-resources (#1689)
Browse files Browse the repository at this point in the history
* ja: update faq/external-resources

ja: fix to use full width brackets

* Update ja/faq/external-resources.md

Co-Authored-By: numa <aytdm251@gmail.com>

* Update ja/faq/external-resources.md

Co-Authored-By: numa <aytdm251@gmail.com>
  • Loading branch information
buntafujikawa and aytdm committed Oct 31, 2019
1 parent 3c6ef9c commit a5be3fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ja/faq/external-resources.md
Expand Up @@ -6,10 +6,10 @@ description: Nuxt.js で外部リソースを使うには?
## グローバルな設定

head オブジェクトもしくは関数の中に、外部のリソースを含めることができます。
1つ目の例ではオブジェクトを使用し、2つ目の例では関数を使用します
computed プロパティもしくは data プロパティのような Vue コンポーネントから値を使用したい場合、 関数として `head` を使用して、最終的な head オブジェクトを返すこともできます。
[head API docs](https://ja.nuxtjs.org/api/pages-head/) で説明されているように、次の例では `head` をオブジェクトと関数として使用します
computed プロパティもしくは data プロパティのような Vue コンポーネントから値を使用したい場合、`head()` メソッドを使用して、最終的な head オブジェクトを返すこともできます。

`nuxt.config.js` 内でリソースをインクルードします:
`nuxt.config.js` 内でリソースをインクルードします(この例では head オブジェクト):

```js
export default {
Expand All @@ -26,7 +26,7 @@ export default {

## ローカルな設定

`pages/` ディレクトリの `.vue` ファイル内でリソースをインクルードします:
`pages/` ディレクトリの `.vue` ファイル内でリソースをインクルードします(この例では head メソッド):

```html
<template>
Expand Down

0 comments on commit a5be3fc

Please sign in to comment.