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
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -84,7 +84,7 @@ List of 300 VueJS Interview Questions
84
84
|75 |[What is the difference between VueJS and ReactJS?](#what-is-the-difference-between-vuejs-and-reactjs)|
85
85
|76 |[What are the advantages of VueJS over ReactJS?](#what-are-the-advantages-of-vuejs-over-reactjs)|
86
86
|77 |[What are the advantages of ReactJS over VueJS?](#what-are-the-advantages-of-reactjs-over-vuejs)|
87
-
|78 |[What are the differences between VueJS and AngularJS?](#What-are-the-differences-between-vuejs-and-angularjs)|
87
+
|78 |[What are the differences between VueJS and Angular?](#What-are-the-differences-between-vuejs-and-angular)|
88
88
|79 |[What are dynamic components?](#what-are-dynamic-components)|
89
89
|80 |[What is the purpose of keep alive tag?](#what-is-the-purpose-of-keep-alive-tag)|
90
90
|81 |[What are async components?](#what-are-async-components)|
@@ -704,7 +704,7 @@ List of 300 VueJS Interview Questions
704
704
705
705
// `vm.name` is now reactive
706
706
707
-
vm.email = john@email.com // `vm.email` is NOT reactive
707
+
vm.user.email = john@email.com // `vm.user.email` is NOT reactive
708
708
```
709
709
You can overcome this scenario using the Vue.set(object, key, value) method or Object.assign(),
710
710
```javascript
@@ -954,7 +954,7 @@ List of 300 VueJS Interview Questions
954
954
29. ### How do you communicate from child to parent using events?
955
955
If you want child wants to communicate back up to the parent, then emit an event from child using `$emit` object to parent,
956
956
```javascript
957
-
Vue.component('todo-tem', {
957
+
Vue.component('todo-item', {
958
958
props: ['todo'],
959
959
template: `
960
960
<div class="todo-item">
@@ -2099,12 +2099,12 @@ List of 300 VueJS Interview Questions
2099
2099
2100
2100
**[⬆ Back to Top](#table-of-contents)**
2101
2101
2102
-
78. ### What are the differences between VueJS and AngularJS?
2102
+
78. ### What are the differences between VueJS and Angular?
2103
2103
The the syntax of Vue and Angular is common at some points because Angular is the basis for VueJS development in the beginning.
2104
2104
2105
2105
But there are many differences between VueJS and Angular as listed,
2106
2106
2107
-
| Feature | VueJS | AngularJS |
2107
+
| Feature | VueJS | Angular |
2108
2108
|---- | --------- | ---- |
2109
2109
| Complexity | Easy to learn, simple API and design | The framework is bit huge and need some learning curve on typescript etc |
2110
2110
| Binding of Data | One-way binding | Two-way binding |
@@ -2267,7 +2267,7 @@ List of 300 VueJS Interview Questions
2267
2267
```javascript
2268
2268
//ComponentB
2269
2269
<div>
2270
-
<component-b>
2270
+
<component-a>
2271
2271
</div>
2272
2272
```
2273
2273
This can be solved by either registering(or wait until) the child component in `beforeCreate` hook or using webpack's asynchronous import while registering the component,
0 commit comments