Guest User

Untitled

a guest
Nov 16th, 2017
364
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. import Ember from 'ember';
  2.  
  3. export default Ember.Controller.extend({
  4. appName: 'Ember Twiddle',
  5.  
  6. newUser: Ember.computed(function() {
  7. const user = this.store.createRecord('user');
  8. const address = this.store.createRecord('address');
  9. address.setProperties({
  10. street: '123 easy street',
  11. city: 'doaijsd',
  12. state: 'ON',
  13. zipCode: '13231'
  14. });
  15.  
  16. user.setProperties({
  17. firstName: 'John',
  18. lastName: 'Smith',
  19. gender: 'M',
  20. birthDate: '1997/01/23',
  21. emailAddress: 'example@example.com',
  22. userName: 'jsmith1',
  23. password: '123123',
  24. terms: 'No terms.'
  25. });
  26. return user;
  27. })
  28. });
Add Comment
Please, Sign In to add comment