indexiatech / ember-forms

Smart, Intuitive forms for Ember.js styled with Bootstrap, Multi layouts and Validation support.
http://indexiatech.github.io/ember-forms
Apache License 2.0
218 stars 45 forks source link

How to use with ember-cli? #20

Closed millisami closed 10 years ago

millisami commented 10 years ago

Hi, I'm trying to use this with ember-cli app. The process:

bower install --save https://github.com/ember-addons/ember-forms/blob/master/dist/ember_forms.js

Then in Brocfile.js, I've put:

app.import('vendor/ember_forms/index.js');

And putting the template:

{{#em-form model=model}}
  {{em-input property="name" label="Full Name" placeholder="Enter a name..."}}
{{/em-form}}

The error is:

vendor/ember/ember.js:3521
Uncaught Error: <lgebs@view:default::ember391> Handlebars error: Could not find property 'em-form' on object (generated users.new controller). 

The issue might be due to the es6 modules? How to solve it?

millisami commented 10 years ago

Oops! The bower installing way was incorrect. Fixed it.