connexion avec back des pages 'advertiser/manageAds' et 'admin/adList'
This commit is contained in:
parent
c91fc523aa
commit
0dd39af7ad
8 changed files with 183 additions and 97 deletions
|
|
@ -38,9 +38,18 @@ export class InputInterestsAdComponent implements OnInit
|
|||
startWith(null),
|
||||
map((fruit: string | null) => fruit ? this._filter(fruit) : this.allTags.slice()));
|
||||
|
||||
// --- FAUX CODE ---
|
||||
this.allTags = this.fictitiousUtilsService.getTags();
|
||||
this.allTags.sort();
|
||||
this.messageService
|
||||
.get("misc/getInterests")
|
||||
.subscribe( retour => {
|
||||
|
||||
if(retour.status !== "success") {
|
||||
console.log(retour);
|
||||
}
|
||||
else {
|
||||
this.allTags = retour.data.map(x => x.interest)
|
||||
this.allTags.sort();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Reference in a new issue