You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -290,7 +292,7 @@ There are usually two cases where it's tempting to mutate a prop:
290
292
291
293
The proper answer to these use cases are:
292
294
293
-
1. Define a local data property that uses the prop's initial value as its initial value:
295
+
<span>1.</span> Define a local data property that uses the prop's initial value as its initial value:
294
296
295
297
```java
296
298
@Component
@@ -308,7 +310,7 @@ public class MyComponent extends VueComponent implements HasCreated {
308
310
}
309
311
```
310
312
311
-
2. Define a computed property that is computed from the prop's value:
313
+
<span>2.</span> Define a computed property that is computed from the prop's value:
312
314
313
315
```java
314
316
@Component
@@ -363,7 +365,7 @@ public class PropDefaultValueComponent extends VueComponent {
363
365
364
366
Beware that in this method you don't have access to your Instance (`this`).
365
367
366
-
## Non-Prop Attributes
368
+
## Non-Prop Attributes {#non-prop-attributes}
367
369
368
370
A non-prop attribute is an attribute that is passed to a component, but does not have a corresponding prop defined.
369
371
@@ -405,7 +407,7 @@ For most attributes, the value provided to the component will replace the value
405
407
So for example, passing `type="large"` will replace `type="date"` and probably break it!
406
408
Fortunately, the `class` and `style` attributes are a little smarter, so both values are merged, making the final value: `form-control date-picker-theme-dark`.
407
409
408
-
## Custom Events
410
+
## Custom Events {#custom-events}
409
411
410
412
We have learned that the parent can pass data down to the child using props, but how do we communicate back to the parent when something happens?
Copy file name to clipboardExpand all lines: docs-source/book/introduction/README.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -513,4 +513,7 @@ public class RootGwtApp implements EntryPoint {
513
513
}
514
514
```
515
515
516
-
To understand more in depth how the Observation works, and avoid pitfalls keep reading **[the Vue Instance](../essential/the-vue-instance.md)**.
516
+
It is **strongly recommended** to read the whole [Essentials section](../essential/the-vue-instance.md) even if skimming through it.
517
+
It will teach you everything you need to know to make full use of the framework.
518
+
519
+
You can then check some specific topics like [Unit Testing](../tooling/unit-testing.md), [Custom Element (Web Component) support](../advanced/custom-elements.md) or [Routing](../scaling-up/routing.md).
0 commit comments