Skip to content

Commit 7874fe8

Browse files
committed
updates for 1.0.5
1 parent b9734d6 commit 7874fe8

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/api/index.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1935,14 +1935,18 @@ type: api
19351935

19361936
- **Arguments:**
19371937
- `{Number} limit`
1938+
- `{Number} [offset]`
19381939

19391940
- **Usage:**
19401941

1941-
Limit the array to the first N items, as specified by the argument.
1942+
Limit the array to the first N items, as specified by the argument. An optional second argument can be provided to set a starting offset.
19421943

19431944
``` html
19441945
<!-- only display first 10 items -->
19451946
<div v-for="item in items | limitBy 10"></div>
1947+
1948+
<!-- display items 5 to 15 -->
1949+
<div v-for="item in items | limitBy 10 5"></div>
19461950
```
19471951

19481952
### filterBy

src/guide/class-and-style.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ A common need for data binding is manipulating an element's class list and its i
88

99
## Binding HTML Classes
1010

11+
<p class="tip">Although you can use mustache interpolations such as `{% raw %}class="{{ className }}"{% endraw %}` to bind the class, it is not recommended to mix that style with `v-bind:class`. Use one or the other!</p>
12+
1113
### Object Syntax
1214

1315
We can pass an Object to `v-bind:class` to dynamically toggle classes. Note the `v-bind:class` directive can co-exist with the plain `class` attribute:

0 commit comments

Comments
 (0)