MCPcopy Index your code
hub / github.com/keepfool/vue-tutorials / initProp

Function initProp

01.GettingStarted/js/vue.js:6196–6200  ·  view source on GitHub ↗

* Set a prop's initial value on a vm and its data object. * * @param {Vue} vm * @param {Object} prop * @param {*} value

(vm, prop, value)

Source from the content-addressed store, hash-verified

6194 */
6195
6196 function initProp(vm, prop, value) {
6197 processPropValue(vm, prop, value, function (value) {
6198 defineReactive(vm, prop.path, value);
6199 });
6200 }
6201
6202 /**
6203 * Update a prop's value on a vm.

Callers 2

makePropsLinkFnFunction · 0.70
vue.jsFile · 0.70

Calls 2

processPropValueFunction · 0.70
defineReactiveFunction · 0.70

Tested by

no test coverage detected