What is reactivity?
What is a Proxy?
A Proxy is created with two parameters:
Why are proxy’s important to understand when using Vue?
How many vue apps can you have per page
as many as you want. Imporant they will work independitly from each other They cannot share data
What are templates
They are used to insert template html in a vue app.
What is the purpose of $Ref in relation to Vue?
We use the $ref in our Vue.js code. to provide and object which provides a complete list of the references defined in the HTML code.
Example:
referencing the input “text”
ref=”input”>
would log the value of “input”
what does $ represent.
A dollar sign $ will refer to Vue instance properties and methods.
reference
https://vuejs.org/v2/api/#Instance-Properties
Why would you use .value in javascript?
.values() is used to coovert on an object to return into an array containing the values as an an array.
const object1 = {
a: 'somestring',
b: 42,
c: false
};**console.log(Object.values(object1));** // expected output: Array ["somestring", 42, false]
What is Virtual Dom?
The Virtual Dom:
The virtual DOM (VDOM) is a programming concept where an ideal, or “virtual”, representation of a UI is kept in memory and synced with the “real” DOM by a library This process is called reconciliation.
It is used :
To tell what state you want the UI to be in, and it makes sure the DOM matches that state.
What is the Vue instance Lifecycle?
It describes the life cycle of an app
what are Vue components?
what is the:key attribute why is it important?
How do you create a component?
app.component(‘name-something’);
How do you use components?
You insert the same way as you would use a normal div
*
why build ann interface with components
// check this and come back when you’re sure.
: study components
What are Directives can you name three?
what is the v-on directive?
Attaches an event listener to the element.
List of events
*
what does v-model do
two way bindig bettwen form input and app state so it will allow you to change the data in an app easily for example.
how do you stop exisitng properties from being changed
Object.freeze(obj) it also stof the reactive system from tracking changes
What is an Interpolation
the insertion of something of a different nature into something else. for example {{ mustache }} is insterted instead of txt the value will be replaced with mustache property on the corresponding data object
What does v-html do
The contents of the span will be replaced with the value of the rawHtml property, interpreted as plain HTML - data bindings are ignored
Describe Computed properties in vue
computed properties are methods that can be called by their dame through the project
what is a slug in coding terms?
A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id . You use a slug when you want to refer to an item while preserving the ability to see, at a glance, what the item is.
What is declarative programming?
Declarative programming is a non-imperative style of programming in which programs describe their desired results without explicitly listing commands or steps that must be performed. Functional and logical programming languages are characterized by a declarative programming style.