props

{ props : { foo : 'foo', bah : true } }

Specify props that should be passed into the component, these should match up to the props used by your component.

Props are passed in through an intermediary component. All this means is that if you update a prop's value, you will need to wait for Vue's next render cycle before the value is passed into your component:

var vm = vuenit.component(component, options);

vm.propsData.myProp = 'changed';

vm.myProp !== 'changed';

vm.$nextTick(() => {
  vm.myProp === 'changed';
});

The component instance has a propsData property that allows you to change the prop value.

results matching ""

    No results matching ""