new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Vue · API reference · all subjects

render & special elements

4 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Slot element for content distribution

The <slot> element acts as a placeholder in a component's template where parent-provided content should be rendered. Components using <slot> can accept and display content passed between their opening and closing tags.

Dynamic component switching with component element

The <component> element with the is attribute allows dynamic switching between components. The value passed to :is can be either the name string of a registered component or an actual imported component object. This is useful for tabbed interfaces and conditional component rendering.

Component unmounting on switch with dynamic components

When switching between multiple components using <component :is="...">}, a component is unmounted when switched away from. To keep inactive components alive and preserve their state, use the built-in <KeepAlive> component.

is attribute for component placement restrictions workaround

When using components with HTML elements that have content restrictions (such as <ul>, <ol>, <table>, <select>), use the special is attribute as a workaround. When used on native HTML elements, the value must be prefixed with 'vue:' to be interpreted as a Vue component (e.g., <tr is="vue:blog-post-row"></tr>).

Give your agent this brain