aurelia-form
Version:
Makes working with forms just a tad more pleasant.
17 lines (16 loc) • 529 B
HTML
<template>
<!-- The order of attributes `checked` and `value` is important. No touch. -->
<input
checked.two-way="checked"
value.two-way="value"
class="${type !== 'radio' && type !== 'checkbox' ? 'form-control' : ''} ${classes}"
type.bind="type"
name.bind="name"
placeholder.bind="placeholder"
readonly.bind="readonly !== false"
prefixed="options.bind: options; prefix: input-"
disabled.bind="disabled !== false"
autofocus.bind="autofocus"
required.bind="required"
>
</template>