Skip to content

Commit 8ec3260

Browse files
author
Evan You
committed
fix hash links
1 parent bd7cdd0 commit 8ec3260

File tree

7 files changed

+20
-20
lines changed

7 files changed

+20
-20
lines changed

source/_posts/vuejs-010-release.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@ See the [Installation](/guide/installation.html) page for the latest builds.
1212

1313
### New
1414

15-
- Literal directives can now contain interpolation tags. These tags will be evaluated only once at compile time. An example usage is conditionally decide which component to instantiate with `v-component="{{type}}"`. [Doc](/guide/directives.html#literal-directives).
15+
- Literal directives can now contain interpolation tags. These tags will be evaluated only once at compile time. An example usage is conditionally decide which component to instantiate with `v-component="{{type}}"`. [Doc](/guide/directives.html#Literal_Directives).
1616
- Attributes listed in the `paramAttributes` option now accept mustache interpolations too. They will also only be evaluated once.
17-
- `v-repeat` now accepts an argument which will be used as the identifier for the wrapped object. This allows more explicit property access in repeaters. [Doc](/guide/list.html#using-an-identifier).
17+
- `v-repeat` now accepts an argument which will be used as the identifier for the wrapped object. This allows more explicit property access in repeaters. [Doc](/guide/list.html#Using_an_Identifier).
1818
- Added `v-view` directive which binds to a string value and dynamically instantiate different components using that string as the component ID. [Doc](/api/directives.html#v-view).
19-
- Added `filterBy` and `orderBy` filters for `v-repeat`. [Doc](/api/filters.html#filterby).
20-
- Custom filters that access properties on its `this` context will be considered **computed filters**. [Doc](/guide/filters.html#computed-filters).
19+
- Added `filterBy` and `orderBy` filters for `v-repeat`. [Doc](/api/filters.html#filterBy).
20+
- Custom filters that access properties on its `this` context will be considered **computed filters**. [Doc](/guide/filters.html#Computed_Filters).
2121
- You can now access the event in `v-on` handler expressions as `$event`. Example: `<a v-on="click:handle('hello', $event)">Hello</a>`
2222
- Interpolation delimiters can now be customized via the `delimiters` global config option. Example: `Vue.config({ delimiters: ["[", "]"] })` will change the matched interpolation tags to `[[ ]]` for text bindings and `[[[ ]]]` for html bindings.
2323

2424
### Changed
2525

26-
- `{{yield}}` syntax has been deprecated. A Web Components spec compatible content insertion mechanism using `<content>` elements has been introduced. [Doc](/guide/composition.html#content-insertion-points).
26+
- `{{yield}}` syntax has been deprecated. A Web Components spec compatible content insertion mechanism using `<content>` elements has been introduced. [Doc](/guide/composition.html#Content_Insertion_Points).
2727
- To use a component as a custom element, the component ID must now contain a hyphen (`-`). This is consistent with the current custom element spec draft.
2828
- `v-repeat` Arrays' augmented methods have been renamed from `set` to `$set(index, value)` and `remove` to `$remove(index | value)`. The prefix better differentiates them from native methods. The `replace` method has been removed.
2929
- When iterating over an Object with `v-repeat`, the object no longer gets a `$repeater` array. Instead, the object is now augmented with two methods: `$add(key, value)` and `$delete(key)`, which will trigger corresponding view updates.

source/api/directives.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ For detailed examples, see [Displaying a List](/guide/list.html).
143143
- This directive creates child ViewModels.
144144
- This directive can trigger transitions.
145145

146-
Conditionally instantiate ViewModels, using the bound value as the Component ID to look up constructors with. When the bound value changes, existing ViewModel will be destroyed and a new ViewModel will be created. When a ViewModel is created, the original element will be replaced, but all attributes will be copied to the new element. For more details, see [Routing](/guide/application.html#routing).
146+
Conditionally instantiate ViewModels, using the bound value as the Component ID to look up constructors with. When the bound value changes, existing ViewModel will be destroyed and a new ViewModel will be created. When a ViewModel is created, the original element will be replaced, but all attributes will be copied to the new element. For more details, see [Routing](/guide/application.html#Routing).
147147

148148
### v-with
149149

@@ -190,7 +190,7 @@ Compile this element as a child ViewModel with a registered component constructo
190190

191191
### v-ref
192192

193-
Only respected when used in combination with `v-component`, `v-with` or `v-repeat`. The ViewModel will be accessible in its parent's `$` object, e.g. `parent.$[id]`. When used with `v-repeat`, the value will be an Array containing the child ViewModel instances corresponding to the Array they are bound to. For examples see [Accessing Child Components](/guide/composition.html#accessing-child-components).
193+
Only respected when used in combination with `v-component`, `v-with` or `v-repeat`. The ViewModel will be accessible in its parent's `$` object, e.g. `parent.$[id]`. When used with `v-repeat`, the value will be an Array containing the child ViewModel instances corresponding to the Array they are bound to. For examples see [Accessing Child Components](/guide/composition.html#Accessing_Child_Components).
194194

195195
### v-partial
196196

@@ -204,7 +204,7 @@ Replace the element's innerHTML with a registered partial. Partials can be regis
204204

205205
Apply a registered JavaScript effect to the element. JavaScript effects can be registered with `Vue.effect()` or passed inside the `effects` option.
206206

207-
For details, see [the guide](/guide/transitions.html#javascript-functions).
207+
For details, see [the guide](/guide/transitions.html#JavaScript_Functions).
208208

209209
## Empty Directives
210210

@@ -214,13 +214,13 @@ For details, see [the guide](/guide/transitions.html#javascript-functions).
214214

215215
Notify Vue.js to apply transition CSS classes to this element. The transition classes are applied when certain transition-triggering directives modifies the element, or when the ViewModel's DOM manipulation methods are called.
216216

217-
For details, see [the guide](/guide/transitions.html#css-transitions).
217+
For details, see [the guide](/guide/transitions.html#Css_Transitions).
218218

219219
### v-animation
220220

221221
Notify Vue.js to apply animation CSS classes to this element. The order of CSS class application is different from `v-transition`.
222222

223-
For details, see [the guide](/guide/transitions.html#css-animations).
223+
For details, see [the guide](/guide/transitions.html#Css_Animations).
224224

225225
### v-pre
226226

source/api/global-methods.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,14 @@ Here are all the options with their default values:
8787
- **id** `String`
8888
- **definition** `Function` or `Object` *optional*
8989

90-
Register or retrieve a global custom directive. For more details see [Writing Custom Directives](/guide/directives.html#writing-a-custom-directive).
90+
Register or retrieve a global custom directive. For more details see [Writing Custom Directives](/guide/directives.html#Writing_a_Custom_Directive).
9191

9292
### Vue.filter( id, definition )
9393

9494
- **id** `String`
9595
- **definition** `Function` *optional*
9696

97-
Register or retrieve a global custom filter. For more details see [Writing Custom Filters](/guide/filters.html#writing-a-custom-filter).
97+
Register or retrieve a global custom filter. For more details see [Writing Custom Filters](/guide/filters.html#Writing_a_Custom_Filter).
9898

9999
### Vue.component( id, definition )
100100

@@ -108,7 +108,7 @@ Register or retrieve a global component. For more details see [Composing ViewMod
108108
- **id** `String`
109109
- **definition** `Object` *optional*
110110

111-
Register or retrieve a global JavaScript transition effect definition. For more details see [Adding Transition Effects](/guide/transitions.html#javascript-functions).
111+
Register or retrieve a global JavaScript transition effect definition. For more details see [Adding Transition Effects](/guide/transitions.html#JavaScript_Functions).
112112

113113
### Vue.partial( id, definition )
114114

source/api/instantiation-options.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,13 +217,13 @@ These are private assets that will be available only to this ViewModel and its c
217217

218218
- **Type:** `Object`
219219

220-
An hash of directives to be made available to the ViewModel. For details on how to write a custom directive, see [Writing Custom Directives](/guide/directives.html#writing-a-custom-directive).
220+
An hash of directives to be made available to the ViewModel. For details on how to write a custom directive, see [Writing Custom Directives](/guide/directives.html#Writing_a_Custom_Directive).
221221

222222
### filters
223223

224224
- **Type:** `Object`
225225

226-
A hash of filters to be made available to the ViewModel. For details on how to write a custom filter, see [Writing Custom Filters](/guide/filters.html#writing-a-custom-filter).
226+
A hash of filters to be made available to the ViewModel. For details on how to write a custom filter, see [Writing Custom Filters](/guide/filters.html#Writing_a_Custom_Filter).
227227

228228
### components
229229

@@ -253,7 +253,7 @@ A parent ViewModel instance. Passing in this option establishes a parent-child r
253253

254254
1. The child can bind to data from the parent's scope in its template;
255255
2. The child can access the parent as `this.$parent`;
256-
3. The parent and child can communicate using the [Event Communication Methods](/api/instance-methods.html#cross-viewmodel-events).
256+
3. The parent and child can communicate using the [Event Communication Methods](/api/instance-methods.html#Cross-ViewModel_Events).
257257
4. When the parent is destroyed, the child will be destroyed too.
258258

259259
This option is useful when you need to manually manage the lifecycle of nested ViewModels for better memory control.

source/guide/composition.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ When `v-ref` is used together with `v-repeat`, the value you get will be an Arra
208208

209209
## Event Communication Between Nested Components
210210

211-
Although you can directly access a ViewModels children and parent, it is more convenient to use the built-in event system for cross-component communication. It also makes your code less coupled and easier to maintain. Once a parent-child relationship is established, you can dispatch and trigger events using each ViewModel's [event instance methods](/api/instance-methods.html#cross-viewmodel-events).
211+
Although you can directly access a ViewModels children and parent, it is more convenient to use the built-in event system for cross-component communication. It also makes your code less coupled and easier to maintain. Once a parent-child relationship is established, you can dispatch and trigger events using each ViewModel's [event instance methods](/api/instance-methods.html#Cross-ViewModel_Events).
212212

213213
``` js
214214
var Child = Vue.extend({

source/guide/directives.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Since Vue.js 0.10, you can also use mustache expressions inside literal directiv
7474

7575
However, note that mustache expressions inside literal directives are evaluated **only once**. After the directive has been compiled, it will no longer react to value changes. To dynamically instantiate different components at run time, use the [v-view](/api/directives.html#v-view) directive.
7676

77-
A full list of literal directives can be found in the [API reference](/api/directives.html#literal-directives).
77+
A full list of literal directives can be found in the [API reference](/api/directives.html#Literal_Directives).
7878

7979
## Empty Directives
8080

@@ -86,7 +86,7 @@ Some directives don't even expect an attribute value - they simply do something
8686
</div>
8787
```
8888

89-
A full list of empty directives can be found in the [API reference](/api/directives.html#empty-directives).
89+
A full list of empty directives can be found in the [API reference](/api/directives.html#Empty_Directives).
9090

9191
## Writing a Custom Directive
9292

source/guide/list.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ You might think this will blow away the existing DOM and re-build everything. Bu
133133

134134
## Array Filters
135135

136-
Sometimes we only need to display a filtered or sorted version of the Array without actually mutating or resetting the original data. Vue provides two built-in filters to simplify such usage: `filterBy` and `orderBy`. Check out their [documentations](/api/filters.html#filterby) for more details.
136+
Sometimes we only need to display a filtered or sorted version of the Array without actually mutating or resetting the original data. Vue provides two built-in filters to simplify such usage: `filterBy` and `orderBy`. Check out their [documentations](/api/filters.html#filterBy) for more details.
137137

138138
## Iterating Through An Object
139139

0 commit comments

Comments
 (0)