Skip to content

Commit cb133c2

Browse files
rahaugyyx990803
authored andcommitted
Vueschool links (#2379)
1 parent 9185aad commit cb133c2

File tree

6 files changed

+13
-0
lines changed

6 files changed

+13
-0
lines changed

src/v2/guide/components-custom-events.md

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ order: 103
66

77
> This page assumes you've already read the [Components Basics](components.html). Read that first if you are new to components.
88
9+
<div class="vueschool"><a href="https://vueschool.io/lessons/communication-between-components?friend=vuejs" target="_blank" rel="sponsored noopener" title="Learn how to work with custom events on Vue School">Learn how to work with custom events in a free Vue School lesson</a></div>
10+
911
## Event Names
1012

1113
Unlike components and props, event names don't provide any automatic case transformation. Instead, the name of an emitted event must exactly match the name used to listen to that event. For example, if emitting a camelCased event name:

src/v2/guide/components-props.md

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ order: 102
66

77
> This page assumes you've already read the [Components Basics](components.html). Read that first if you are new to components.
88
9+
<div class="vueschool"><a href="https://vueschool.io/lessons/reusable-components-with-props?friend=vuejs" target="_blank" rel="sponsored noopener" title="Learn how component props work with Vue School">Learn how component props work with a free lesson on Vue School</a></div>
10+
911
## Prop Casing (camelCase vs kebab-case)
1012

1113
HTML attribute names are case-insensitive, so browsers will interpret any uppercase characters as lowercase. That means when you're using in-DOM templates, camelCased prop names need to use their kebab-cased (hyphen-delimited) equivalents:

src/v2/guide/computed.md

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ order: 5
66

77
## Computed Properties
88

9+
<div class="vueschool"><a href="https://vueschool.io/lessons/vuejs-computed-properties?friend=vuejs" target="_blank" rel="sponsored noopener" title="Learn how computed properties work with Vue School">Learn how computed properties work with a free lesson on Vue School</a></div>
10+
911
In-template expressions are very convenient, but they are meant for simple operations. Putting too much logic in your templates can make them bloated and hard to maintain. For example:
1012

1113
``` html

src/v2/guide/conditional.md

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ type: guide
44
order: 7
55
---
66

7+
<div class="vueschool"><a href="https://vueschool.io/lessons/vuejs-conditionals?friend=vuejs" target="_blank" rel="sponsored noopener" title="Learn how conditional rendering works with Vue School">Learn how conditional rendering works with a free lesson on Vue School</a></div>
8+
79
## `v-if`
810

911
The directive `v-if` is used to conditionally render a block. The block will only be rendered if the directive's expression returns a truthy value.

src/v2/guide/events.md

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ type: guide
44
order: 9
55
---
66

7+
<div class="vueschool"><a href="https://vueschool.io/lessons/vuejs-user-events?friend=vuejs" target="_blank" rel="sponsored noopener" title="Learn how to handle events on Vue School">Learn how to handle events in a free Vue School lesson</a></div>
8+
79
## Listening to Events
810

911
We can use the `v-on` directive to listen to DOM events and run some JavaScript when they're triggered.

src/v2/guide/list.md

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ type: guide
44
order: 8
55
---
66

7+
<div class="vueschool"><a href="https://vueschool.io/lessons/vuejs-loops?friend=vuejs" target="_blank" rel="sponsored noopener" title="Learn how to render lists on Vue School">Learn how to render list with a free Vue School lesson</a></div>
8+
9+
710
## Mapping an Array to Elements with `v-for`
811

912
We can use the `v-for` directive to render a list of items based on an array. The `v-for` directive requires a special syntax in the form of `item in items`, where `items` is the source data array and `item` is an **alias** for the array element being iterated on:

0 commit comments

Comments
 (0)