Skip to content

Commit

Permalink
chore: fix some broken links to v2 docs (vuejs#12839)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinjiang authored Oct 19, 2022
1 parent a7a71ad commit 6d9aac8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion examples/classic/elastic-header/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<draggable-header-view>
<template slot="header">
<h1>Elastic Draggable SVG Header</h1>
<p>with <a href="https://vuejs.org">Vue.js</a> + <a href="http://dynamicsjs.com">dynamics.js</a></p>
<p>with <a href="https://v2.vuejs.org">Vue.js</a> + <a href="http://dynamicsjs.com">dynamics.js</a></p>
</template>
<template slot="content">
<p>Note this is just an effect demo - there are of course many additional details if you want to use this in production, e.g. handling responsive sizes, reload threshold and content scrolling. Those are out of scope for this quick little hack. However, the idea is that you can hide them as internal details of a Vue.js component and expose a simple Web-Component-like interface.</p>
Expand Down
4 changes: 2 additions & 2 deletions examples/classic/todomvc/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ var app = new Vue({
},

// computed properties
// https://vuejs.org/guide/computed.html
// https://v2.vuejs.org/v2/guide/computed.html
computed: {
filteredTodos: function () {
return filters[this.visibility](this.todos)
Expand Down Expand Up @@ -129,7 +129,7 @@ var app = new Vue({

// a custom directive to wait for the DOM to be updated
// before focusing on the input field.
// https://vuejs.org/guide/custom-directive.html
// https://v2.vuejs.org/v2/guide/custom-directive.html
directives: {
'todo-focus': function (el, binding) {
if (binding.value) {
Expand Down
10 changes: 5 additions & 5 deletions examples/classic/todomvc/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
> Vue.js is a library for building interactive web interfaces.
It provides data-driven, nestable view components with a simple and flexible API.

> _[Vue.js - vuejs.org](https://vuejs.org)_
> _[Vue.js - v2.vuejs.org](https://v2.vuejs.org)_
## Learning Vue.js
The [Vue.js website](https://vuejs.org/) is a great resource to get started.
The [Vue.js website](https://v2.vuejs.org/) is a great resource to get started.

Here are some links you may find helpful:

* [Official Guide](https://vuejs.org/guide/)
* [API Reference](https://vuejs.org/api/)
* [Examples](https://vuejs.org/examples/)
* [Official Guide](https://v2.vuejs.org/guide/)
* [API Reference](https://v2.vuejs.org/api/)
* [Examples](https://v2.vuejs.org/examples/)

Get help from other Vue.js users:

Expand Down
2 changes: 1 addition & 1 deletion src/compiler/codegen/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ export function genFor(
state.warn(
`<${el.tag} v-for="${alias} in ${exp}">: component lists rendered with ` +
`v-for should have explicit keys. ` +
`See https://vuejs.org/guide/list.html#key for more info.`,
`See https://v2.vuejs.org/v2/guide/list.html#key for more info.`,
el.rawAttrsMap['v-for'],
true /* tip */
)
Expand Down

0 comments on commit 6d9aac8

Please sign in to comment.