Advanced Front-End Frameworks
2021-8-16 Less than 1 minute
# Advanced Front-End Frameworks
1. Describe the two ways to bind Data in Vue?
v-bind
:
1
2
3
2
3
2. The SPA acronym stands for what?
Single Page Applications
1
2
2
3. What are some of the advantages/uses of a SPA over a traditional one?
It keeps your code clean. It also helps you find bugs quicker.
1
2
2
4. What does the onMounted method in Vue do?
Whats to run before the page is rendered, sort of like prepping it.
1
2
2
5. What is the v-model attribute in Vue for, and when might you use it?
I believe it's like a director, saying hey this is where you should do your magic.
1
2
2
6. The v:on (@) directive can be used for what?
When making a button. You can tell it to do two different things.
1
2
2
7. Which Vue attributes(directives) could you use to conditionally render elements on a page?
beforeCreate, onMount, watchEffect, onMounted.
1
2
2
8. What is the purpose of the key attribute when using v-for on an element?
a hint for Vue's virtual DOM algorithm to keep track of a node's identity.
1
2
2
9. What is the <slot> element and what is it used for?
a distribution outlet for content
1
2
2