Commit f6fe2447 authored by Cédric Moreau's avatar Cédric Moreau

[enh] Chargement plus rapide de la page principale

parent b51ca2ee
......@@ -14,7 +14,6 @@ export class HomePage {
constructor(private announceService:AnnounceService, private crowdfundingService:CrowdfundingService) {
this.announces = []
this.announceService.listAllAnnounces().then(announces => this.announces = announces.map(a => {
a.thumbnail = a.images[0]
a.descLigne = a.desc.replace(/\\n/g, ' ')
a.pctFunded = this.crowdfundingService.getFundingAmount(a)
return a
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment