@@ -1932,40 +1932,40 @@ List of 300 VueJS Interview Questions
19321932 // Type is {String | Object | Function}
19331933 // Required.
19341934 'div',
1935-
1935+
19361936 // A data object corresponding to the attributes you would use in a template.
1937- //Type is {Object}
1937+ // Type is {Object}
19381938 // Optional.
19391939 {
1940- // Normal HTML attributes
1941- attrs: {
1942- id: 'someId'
1943- },
1944- // Component props
1945- props: {
1946- myProp: 'somePropValue'
1947- },
1948- // DOM properties
1949- domProps: {
1950- innerHTML: 'This is some text'
1951- },
1952- // Event handlers are nested under ` on`
1953- on: {
1954- click: this.clickHandler
1955- },
1956- // Similar to ` v- bind: style` , accepting either a string, object, or array of objects.
1957- style: {
1958- color: 'red',
1959- fontSize: '14px'
1960- },
1961- // Similar to ` v- bind: class ` , accepting either a string, object, or array of strings and objects.
1962- class: {
1963- classsName1: true,
1964- classsName2: false
1965- },
1966- ....
1940+ // Normal HTML attributes
1941+ attrs: {
1942+ id: 'someId'
1943+ },
1944+ // Component props
1945+ props: {
1946+ myProp: 'somePropValue'
1947+ },
1948+ // DOM properties
1949+ domProps: {
1950+ innerHTML: 'This is some text'
1951+ },
1952+ // Event handlers are nested under ` on`
1953+ on: {
1954+ click: this.clickHandler
1955+ },
1956+ // Similar to ` v- bind: style` , accepting either a string, object, or array of objects.
1957+ style: {
1958+ color: 'red',
1959+ fontSize: '14px'
1960+ },
1961+ // Similar to ` v- bind: class ` , accepting either a string, object, or array of strings and objects.
1962+ class: {
1963+ classsName1: true,
1964+ classsName2: false
1965+ }
1966+ // ....
19671967 },
1968-
1968+
19691969 // Children VNodes, built using ` createElement ()` , or using strings to get 'text VNodes'.
19701970 // Type is {String | Array}
19711971 // Optional.
0 commit comments