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 · Tutorial · all subjects

declarative rendering & mustaches

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

Mustache syntax for text interpolation

Text interpolation uses the Mustache syntax with double curly braces. The syntax is {{ propertyName }}, which will be replaced with the value of that property from the component instance and will update whenever the property changes.

Mustaches cannot be used in HTML attributes

Mustache expressions cannot be used inside HTML attributes. For example, <div id="{{ userId }}"> will not work. Instead, use the v-bind directive or its shorthand syntax.

v-html directive for rendering raw HTML

The v-html directive outputs real HTML instead of plain text. Use it as <span v-html="rawHtml"></span>. Data bindings inside v-html content are ignored. Only use v-html on trusted content, never on user-provided content due to XSS vulnerabilities.

Give your agent this brain