Skip to content

Instantly share code, notes, and snippets.

@taras
Created March 15, 2014 23:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taras/9575715 to your computer and use it in GitHub Desktop.
Save taras/9575715 to your computer and use it in GitHub Desktop.
controller.setProperties({
title: 'Hello World',
slug: ''
})
console.log(controller.get('validation'));
{
title: {
isPassed: true,
value: 'Hello World'
},
slug: {
isPassed: false,
error: 'Slug can not be empty.'
},
isPassed: false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment