首页 > TAG信息列表 > aurelia-binding

javascript – 使用表单中的数字

我正在用Aurelia构建一个应用程序,并且到目前为止真的很喜欢这个框架,但是我偶然发现了一个问题,我试图显示一个复选框列表,其值为数字(ID:s实际上),Aurelia似乎将它们转换为字符串,因此比较失败. 我基本上有类似的东西: export class MyVm { constructor () { this.ite

javascript – Aurelia单选按钮绑定

希望有人可以帮助我.我有以下观点: <label repeat.for="option of options"> <input type="radio" name="periodOptions" model.bind="option" checked.bind="$parent.selectedOption" click.delegate="clicked()"

javascript – 在更改为包含数组时更新Aurelia观察到的属性

我有一个简单的类,具有计算属性的事件: import moment from 'moment'; export class Event { constructor(data) { Object.assign(this, data); } get playedFromNow() { return moment(this.CreateDate).fromNow(); } } playingFromNow只返回

javascript – aurelia:变量未在自定义组件中打印

weather.ts文件 import {bindable} from 'aurelia-framework'; export class Weather { cityName: string = 'Hilsinki'; constructor() { this.cityName = 'Hilsinki'; } } weather.html文件 <template> City XName: