00.stencil:03.stencilの_propと_state
文書の過去の版を表示しています。
03.Stencilの@propと@state
Angularには、双方向データバインディングがあるのですが、Stencilには単方向データバインディングしかないです。
そのため、Stencilでは、フォームからの入力データを@state()で受け取り、何かに入れて、render()で表示するようにプログラミングする必要があります。
参考:https://www.joshmorony.com/building-a-pwa-with-stencil-storage-and-services/
@prop()の解説のリンク
https://stenciljs.com/docs/properties
Prop Decorator(公式ドキュメント)
@state()の解説のリンク
https://stenciljs.com/docs/state
State Decorator(公式ドキュメント)
リンク
00.stencil/03.stencilの_propと_state.1569384125.txt.gz · 最終更新: 2019/09/25 by adash333