0

我正在尝试http://aurelia.io/get-started.html项目,安装完所有内容后,我在 chrome 控制台中收到以下错误:

在此处输入图像描述 这是Firefox中的错误

在此处输入图像描述

4

1 回答 1

0

知道了 !

我输入了值。债券而不是价值。在标记中绑定

应用程序.html:

<template>
  <section>
    <h2>${heading}</h2>

    <form role="form" submit.delegate="welcome()">
      <div class="form-group">
        <label for="fn">First Name</label>
        <input type="text" value.bond="firstName" class="form-control" id="fn" placeholder="first name">
      </div>
      <div class="form-group">
        <label for="ln">Last Name</label>
        <input type="text" value.bond="lastName" class="form-control" id="ln" placeholder="last name">
      </div>
      <div class="form-group">
        <label>Full Name</label>
        <p class="help-block">${fullName}</p>
      </div>
      <button type="submit" class="btn btn-default">Submit</button>
    </form>
  </section>
</template>
于 2015-04-28T18:51:00.507 回答