Skip to content

Validation from documentation example doesn't work  #99

@Skivmag

Description

@Skivmag

I'm trying to implement validation example from here
http://indexiatech.github.io/ember-forms/quickexample

Model:


`import DS from 'ember-data'`

User = DS.Model.extend
    username: DS.attr('string')
    email: DS.attr('string')

User.reopen
    validations:
        username:
            presence: true
            length:
                minimum: 5

`export default User`

Template:

{{#em-form model=model form_layout="inline"}}
            {{em-input property="username" value=model.username}}
            {{em-input property="email" type='email' value=model.email}}
        {{/em-form}}

But when I try to enter invalid text to username field - nothing happened

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions