Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Basic Ember.js Model
App.UserSignUpModel = Em.Object.extend
name: null
email: null
isValidEmail: () ->
validEmailRegex = new RegExp^[0-9a-zA-Z]+@[0-9a-zA-Z]+[\.]{1}[0-9a-zA-Z]+[\.]?[0-9a-zA-Z]+$”
validEmailRegex.test(@get('email'))
.property('email')
user = App.UserSignUpModel.create
name: 'Jonathan Conway'
email: 'test@test.com'
App.UserSignUpModel = Em.Object.extend
name: null
email: null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.