ng effects
1.0.0
ملحوظة | لم يعد هذا المستودع يتم الحفاظ عليه. تستمر القصة في API التكوين الزاوي. |
نظام التفاعل للزاوي. بناء على VUE تكوين API.
مرجع API ⚡ StackBlitz Changelog
ملحوظة | هل تبحث عن مستندات (9.0.x) السابقة؟ انقر هنا. |
@ Component ( {
selector : "app-root" ,
inputs : [ "count" ] ,
outputs : [ "countChange" ]
} )
export class AppComponent extends defineComponent ( ( ) => {
const count = ref ( 0 )
const countChange = new EventEmitter < number > ( )
function increment ( ) {
count . value += 1
}
watchEffect ( ( ) => {
countChange . emit ( count . value )
} )
return {
count ,
countChange ,
increment ,
}
} ) { } تثبيت عبر NPM
npm install ng-effects