Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Ember from 'ember';
- export default Ember.Controller.extend({
- appName: 'Ember Twiddle',
- newUser: Ember.computed(function() {
- const user = this.store.createRecord('user');
- const address = this.store.createRecord('address');
- address.setProperties({
- street: '123 easy street',
- city: 'doaijsd',
- state: 'ON',
- zipCode: '13231'
- });
- user.setProperties({
- firstName: 'John',
- lastName: 'Smith',
- gender: 'M',
- birthDate: '1997/01/23',
- emailAddress: 'example@example.com',
- userName: 'jsmith1',
- password: '123123',
- terms: 'No terms.'
- });
- return user;
- })
- });
Add Comment
Please, Sign In to add comment