attribute
- [router-outlet]: child module space
- module-event-click: click event
- value: method name, parameter($event, View)
<button dr-event-click="changeData">change</button>
- module-event-change: change event
- value: method name, parameter($event, View)
<input dr-event-change="changeData">
- module-event-keyup: keyup event
- value: method name, parameter($event, View)
<input dr-event-keyup="changeData">
- module-event-keydown: keydown event
- value: method name, parameter($event, View)
<input dr-event-keydown="changeData">
- module-event-input: input event
- value: method name, parameter($event, View)
<input dr-event-input="changeData">
- module-value-link: link event (value change <-> input)
<input dr-value-link="value">
- module-value: value injection
<input dr-value="value">
- module-change-attr: change value setAttribute
<img src="https://cdn.imweb.me/thumbnail/20190912/460132b4e4fce.jpg" module-change-attr="return {height: this.size, width: this.size}">
- module-change-style: change value set Style
<div module-change-style="return {fontSize: `${this.size}px`, color: this.randomColor()}">hello</div>
- router-active-class: url === href attribute => class add
- value: add and remove class name
<a router-link="ajax" router-active-class="['active']">Ajax</a>
<a router-link="ajax">Ajax</a>
data(i: Intent) {
this.datas = i.data + '->' + i.params.aa
}
viewSubscribe(i: Intent<View<HTMLInputElement>>) {
this.datas = i.data?.value + '->' + i.params.aa + '-->' + i.event
}