This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
Commit 0af60808 authored by Daniel Rainer's avatar Daniel Rainer
Browse files

Fix typos in front-end

parent a6c284cd
2 merge requests!17Initial Merge to Prepare Release 1.0.0,!1Resolve "Metadaten konsolideren"
......@@ -33,7 +33,7 @@ export class SearchService {
const options: HttpParams = new HttpParams();
options.append('keyWordPrefix', prefix);
return this.http.get<Array<string>>(this.resourceProgrammingLanguageAutoCompleteDetails, {
params: new HttpParams().set('progammingLanguagePrefix', prefix),
params: new HttpParams().set('programmingLanguagePrefix', prefix),
});
}
......
......@@ -5,46 +5,40 @@ import { SearchService } from 'app/search/service/search-service';
@Component({
selector: 'jhi-teaser-content',
templateUrl: './teaserContent.component.html',
styleUrls: ['./teaserContent.component.scss']
styleUrls: ['./teaserContent.component.scss'],
})
export class TeaserContentComponent implements OnInit {
public keywords: Array<String> = new Array<String>();
public contributors: Array<String> = new Array<String>();
public programmingLanguages: Array<String> = new Array<String>();
constructor(
private searchService: SearchService
) { }
constructor(private searchService: SearchService) {}
ngOnInit(): void {
this.searchService.getKeywordsAutoComplete('')
.subscribe(
(data: Array<string>) => {
this.keywords = data;
}
,
() => {alert("Initializiation of keywords failed");}
);
this.searchService.getProgrammingLanguageAutoComplete('')
.subscribe(
(data: Array<string>) => {
this.programmingLanguages = data;
}
,
() => {alert("Initializiation of programming languages failed");}
);
this.searchService.getContributorAutoComplete('')
.subscribe(
(data: Array<string>) => {
this.contributors = data;
}
,
() => {alert("Initializiation of contributors failed");}
);
this.searchService.getKeywordsAutoComplete('').subscribe(
(data: Array<string>) => {
this.keywords = data;
},
() => {
alert('Initialization of keywords failed');
}
);
this.searchService.getProgrammingLanguageAutoComplete('').subscribe(
(data: Array<string>) => {
this.programmingLanguages = data;
},
() => {
alert('Initialization of programming languages failed');
}
);
this.searchService.getContributorAutoComplete('').subscribe(
(data: Array<string>) => {
this.contributors = data;
},
() => {
alert('Initialization of contributors failed');
}
);
}
}
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