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

I am having a real hard time in understanding Ember-Forms #51

Closed tananrules closed 9 years ago

tananrules commented 9 years ago

I am a newbie to ember. I'm using ember-cli and my actions are defined in routes. I am unable to understan what to pass in model pram of em-form, and my controller nothing defined.

my template is :

    <div class="container">
        {{#em-form form_layout="horizontal" model=model.session action="loginUser"}}
            {{em-input label="Email" property="email"}}
            {{em-input label="Password" property="password"}}
        {{/em-form}}

      <div>
          <p>{{email}}</p><br>
          <p>{{password}}</p>
      </div>
    </div>

any jsfiddle working example would be appreciated

thanks in advance

asaf commented 9 years ago

This should work, please see the new guidelines, if you'r having a bad time please provide a jsbin and I'll try to fix, feel free to reopen