# Inferred Assignments `assignFrom` can automatically distribute source values to matching DOM elements based on structural conventions. Instead of writing path strings manually, you declare which keys to distribute and the system finds the right elements and sets the right properties. ## Import ```TypeScript import { assignFrom } from 'assign-gingerly/assignFrom.js'; ``` No additional imports are needed — the inferencer is loaded dynamically on demand. ## Basic Usage ```html
``` ```TypeScript const vm = { name: 'Alice', email: 'alice@example.com', joinDate: '2024-01-15T00:00:00Z' }; await assignFrom(card, {}, { from: vm, infer: { byItemprop: ['name', 'email', 'joinDate'] } }); // Result: // Alice // //