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
Copy file name to clipboardExpand all lines: README.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1187,14 +1187,15 @@ List of 300 VueJS Interview Questions
1187
1187
A non-prop attribute is an attribute that is passed to a component, but does not have a corresponding prop defined.
1188
1188
1189
1189
For example, If you are using a 3rd-party custom-input component that requires a `data-tooltip` attribute on the input then you can add this attribute to component instance,
1190
-
```javascript
1190
+
```vue
1191
1191
<custom-input data-tooltip="Enter your input" />
1192
1192
```
1193
1193
If you try to pass the props from parent component the child props with the same names will be overridden. But props like `class` and `style` are exception to this, these values will be merged in the child component.
0 commit comments