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

update api/index.md #2989

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all 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
16 changes: 15 additions & 1 deletion src/v2/api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ type: api
``` js
// make sure to set this synchronously immediately after loading Vue
Vue.config.devtools = true

// Suggest using the `onload` attribute of the script tag to run the above code
// if run on Chrome or other browsers engine based on Blink,
// like the following:
<script src="path/to/vue.js" onload="Vue.config.devtools = true"></script>
```

Configure whether to allow [vue-devtools](https://github.com/vuejs/vue-devtools) inspection. This option's default value is `true` in development builds and `false` in production builds. You can set it to `true` to enable inspection for production builds.
Expand Down Expand Up @@ -170,10 +175,19 @@ type: api

- **Type:** `boolean`

- **Default:** `true`
- **Default:** `true` (`false` in production builds)

- **Usage**:

``` js
// make sure to set this synchronously immediately after loading Vue
Vue.config.productionTip = true

// Suggest using the `onload` attribute of the script tag to run the above code
// if run on Chrome or other browsers engine based on Blink,
// like the following:
<script src="path/to/vue.js" onload="Vue.config.productionTip = true"></script>
```
Set this to `false` to prevent the production tip on Vue startup.

## Global API
Expand Down