ComponentOptions (Vue2)
Bu sahifa hali tarjima qilinmagan

Tarjima qoshish uchun havola boyicha o'tib Pull Request oching (havolaga o'tish).

Standart til uchun tarkibni ko'rsatadi.

ComponentOptions (Vue2)

effector

Returns

(Function | Object | Store): Store or object of Store’s, or function which will be called with the Component instance as this.

An event or an effect in the object becomes a Store<number> that counts its calls, so a watch of the component can react to it.

Examples

Basic Usage

import Vue from "vue";
import { createStore } from "effector";
const counter = createStore(0);
new Vue({
effector() {
// called with the component instance as `this`
return { counter }; // would create `counter` in template
},
});

Using Object Syntax

import { counter } from "./stores";
new Vue({
effector: {
counter, // would create `counter` in template
},
});

Using Store Directly

import { counter } from "./stores";
new Vue({
effector: counter, // would create `state` in template
});
Tarjima jamiyat tomonidan qollanilyapti

Ingliz tilidagi hujjatlar eng dolzarb hisoblanadi, chunki u effector guruhi tomonidan yozilgan va yangilanadi. Hujjatlarni boshqa tillarga tarjima qilish jamiyat tomonidan kuch va istaklar mavjud bo'lganda amalga oshiriladi.

Esda tutingki, tarjima qilingan maqolalar yangilanmasligi mumkin, shuning uchun eng aniq va dolzarb ma'lumot uchun hujjatlarning asl inglizcha versiyasidan foydalanishni tavsiya etamiz.

Hammualliflar