Installation

Aurelia-Cli

Run npm i aurelia-form --save from your project root.

Aurelia-form needs an installation of aurelia-view-manager and aurelia-validatejs. It also has submodules and makes use of extend. So, add following to the build.bundles.dependencies section of aurelia-project/aurelia.json.

"dependencies": [
  // ...
  "extend",
  {
    "name": "aurelia-form",
    "path": "../node_modules/aurelia-form/dist/amd",
    "main": "aurelia-form",
    "resources": [
      "attributes.html",
      "component/form-field.html",
      "component/form-fields.html",
      "component/schema-form.html",
      "component/framework/bootstrap/actions.html",
      "component/framework/bootstrap/association.html",
      "component/framework/bootstrap/checkbox.html",
      "component/framework/bootstrap/checkboxes.html",
      "component/framework/bootstrap/collection.html",
      "component/framework/bootstrap/conditional.html",
      "component/framework/bootstrap/fieldset.html",
      "component/framework/bootstrap/file.html",
      "component/framework/bootstrap/form-group.html",
      "component/framework/bootstrap/input.html",
      "component/framework/bootstrap/radios.html",
      "component/framework/bootstrap/select.html",
      "component/framework/bootstrap/submit.html",
      "component/framework/bootstrap/textarea.html"            
    ]
  }
  // ...
],

Jspm

Run jspm i aurelia-form from your project root.

Aurelia-form makes use of extend. So, add following to the desired includes section of build/bundles.js, eg:

"aurelia": {
  "includes": [
    //...
    "extend",
    "aurelia-form",
    "[aurelia-form/**/*.js]",
    "aurelia-form/**/*.html!text",
    //...
  ]
}

Aurelia-form needs an installation of aurelia-api and aurelia-validation@0.6.6. It also has submodules. They are imported in it's main file, so no further action is required.

If the installation results in having forks, try resolving them by running:

jspm inspect --forks
jspm resolve --only registry:package-name@version

E.g.

jspm inspect --forks
>     Installed Forks
>         npm:aurelia-dependency-injection 1.0.0-beta.1.2.3 1.0.0-beta.2.1.0

jspm resolve --only npm:aurelia-dependency-injection@1.0.0-beta.2.1.0

Webpack

Run npm i aurelia-form --save from your project root.

Add aurelia-form in the coreBundles.aurelia section of your webpack.config.js.

aurelia-form needs an installation of aurelia-api and aurelia-validation@0.6.6. It also has submodules. They are listed as resources in the package.json. So, no further action is required.

Typescript

Npm-based installations pick up the typings automatically. For Jspm-based installations, add to your typings.json:

"aurelia-form": "github:spoonx/aurelia-form",

and run typings i

or run

typings i github:spoonx/aurelia-form

results matching ""

    No results matching ""