Why: the goal or problem
Templates and changing data must stay synchronized. Updating visible fields individually creates duplicate work and inconsistent screens.
How: work toward a solution
Two Field notes cards start unsaved. Save on A17 changes only its label to Saved; B04 stays unsaved. Saving B04 changes the shared count from one to two. Repeating Save leaves two records: each ID counts once. The diagram connects reactive state to the template. Reset or reload clears both cards. There is no persistent storage here.
Concept simulation
Vue
Save either card. Each ID counts once; the other card stays unchanged.
01 · Logic: reactive state
A17: 0 · B04: 0 → 1
02 · Template: state bindings
A17
Field notes
B04
Field notes
03 · Style: card presentation
One authoring file; packaging is separate.
Saved count: 0 / 2
A17: 0 · B04: 0
Waiting
A fictional demo within this article. Reset or reload restores its initial state.
What: the concept
Vue binds templates to reactive state. A single-file component can colocate logic, template, and styles; it is an authoring format, not a network-file guarantee.
Define shared ownership and external persistence separately.
Discuss this idea
Comments are shared across languages. GitHub login required to post.