8000 clarify example titles · vuejs/rfcs@51d6752 · GitHub
[go: up one dir, main page]

Skip to content

Commit 51d6752

Browse files
authored
clarify example titles
1 parent 3fd78be commit 51d6752

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

active-rfcs/0000-function-api.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ Current 2.x users who wish to use the new API, but have a legacy application can
866866

867867
### Simple Counter
868868

869-
2.x
869+
Standard API
870870

871871
``` vue
872872
<template>
@@ -897,7 +897,7 @@ export default {
897897
</script>
898898
```
899899

900-
New API
900+
Functions API
901901

902902
``` vue
903903
<template>
@@ -927,7 +927,7 @@ export default {
927927

928928
### Fetching Data Based on Prop
929929

930-
2.x
930+
Standard API
931931

932932
``` vue
933933
<template>
@@ -970,7 +970,7 @@ export default {
970970
</script>
971971
```
972972

973-
New API
973+
Functions API
974974

975975
``` vue
976976
<template>
@@ -1010,7 +1010,7 @@ export default {
10101010

10111011
Based on the previous data-fetching example, suppose we want to also track mouse position in the same component:
10121012

1013-
2.x
1013+
Standard API
10141014

10151015
``` vue
10161016
<template>
@@ -1066,7 +1066,7 @@ export default {
10661066

10671067
You'll start to notice that we have two logic topics (data fetching and mouse position tracking) but they are split up and mixed between component options.
10681068

1069-
With new API:
1069+
With the function-based API:
10701070

10711071
``` vue
10721072
<template>
@@ -1126,7 +1126,7 @@ export default {
11261126
</script>
11271127
```
11281128

1129-
Notice how the new API cleanly organizes code by logical topic instead of options.
1129+
Notice how the function-based API cleanly organizes code by logical topic instead of options.
11301130

11311131
More examples can be found in [this gist](https://gist.github.com/yyx990803/762ec427882a61be3e4affe02f8af555).
11321132

0 commit comments

Comments
 (0)
0