import Route from '@ember/routing/route' ;
export default class DetailsRoute extends Route {
details = [
{
'name' : 'Anubhav' ,
'mobile' : '1298119967' ,
'city' : 'Patna' ,
'country' : 'India' ,
'gender' : 'M' ,
'zipCode' : '800020'
},
{
'name' : 'Sakshi' ,
'mobile' : '1234567890' ,
'city' : 'Mumbai' ,
'country' : 'India' ,
'gender' : 'F' ,
'zipCode' : '400001'
},
{
'name' : 'Satyam' ,
'mobile' : '2222222222' ,
'city' : 'Delhi' ,
'country' : 'India' ,
'gender' : 'M' ,
'zipCode' : '110012'
},
{
'name' : 'Shivam' ,
'mobile' : '1122113322' ,
'city' : 'Bangalore' ,
'country' : 'India' ,
'gender' : 'M' ,
'zipCode' : '530068'
},
{
'name' : 'Ayushi' ,
'mobile' : '2244668800' ,
'city' : 'Jaipur' ,
'country' : 'India' ,
'gender' : 'F' ,
'zipCode' : '302001'
}
];
someMoreDetails = [
{
'name' : 'Yeshwant' ,
'mobile' : '1133557799' ,
'city' : 'Chennai' ,
'country' : 'India' ,
'gender' : 'M' ,
'zipCode' : '600001'
},
{
'name' : 'Siddhant' ,
'mobile' : '9911000000' ,
'city' : 'Mangalore' ,
'country' : 'India' ,
'gender' : 'M' ,
'zipCode' : '574142'
},
{
'name' : 'Khushi' ,
'mobile' : '8888888888' ,
'city' : 'Pune' ,
'country' : 'India' ,
'gender' : 'F' ,
'zipCode' : '111045'
}
];
city;
code;
model() {
return this .details;
}
setupController(controller, model) {
this ._super(controller, model);
controller.set( 'details' , this .details);
controller.set( 'someMoreDetails' , this .someMoreDetails);
controller.set( 'city' , this .city);
controller.set( 'code' , this .code);
}
}
|