ng effects
1.0.0
메모 | 이 저장소는 더 이상 유지 관리되지 않습니다. 이 이야기는 Angular Composition API에서 계속됩니다. |
각도에 대한 반응성 시스템. VUE 구성 API를 기반으로합니다.
API 참조 ack 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