import Route from
'@ember/routing/route'
;
import { classify, w } from
'@ember/string'
;
export
default
class RichestPeopleRoute extends Route {
richestPeople = [
'elon Musk'
,
'bernard Arnault and family'
,
'jeff Bezos'
,
'Bill gates'
,
'gautam adani and family'
,
'Larry Page'
,
'Warren Buffet'
,
'larry Ellison'
,
'mukesh ambani'
,
'sergey brin'
];
num = 10;
init() {
this
.richestPeople =
this
.richestPeople.map(classify);
}
model() {
this
.init();
return
this
.richestPeople;
}
setupController(controller, model) {
this
._super(controller, model);
controller.set(
'num'
,
this
.num);
controller.set(
'richestPeople'
,
this
.richestPeople)
}
}