Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4830

Unexpected token error in colons after fixture keyword. Can anyone help with this?

$
0
0

@vishal.sh11 wrote:

import DS from 'ember-data';

var address = DS.Model.extend({
house: DS.attr('string'),
street: DS.attr('string'),
place: DS.attr('string'),
landmark: DS.attr('string'),
city: DS.attr('string'),
state: DS.attr('string'),
postalCode: DS.attr('string'),
contact: DS.hasMany('contact',{async:true})
});

address.reopenClass(FIXTURES:[
{
id: '1',
house: 'H01',
street: '1',
place: 'Sector-82',
landmark: 'Opp. Clock Tower',
city: 'Noida',
state: 'Haryana',
postalCode: '133023',
contact: [1,2]
},
{
id: '2',
house: 'H02',
street: '1',
place: 'Sector-82',
landmark: 'Opp. Clock Tower',
city: 'Noida',
state: 'Haryana',
postalCode: '133023',
contact: [3,4]
}]);

export default address;

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4830

Trending Articles