code angular here
https://stackblitz.com/angular/dnbermjydavk?file=app%2Ftable-overview-example.html
how can replace this
- const NAMES = ['Maia', 'Asher', 'Olivia', 'Atticus', 'Amelia', 'Jack',
- 'Charlotte', 'Theodore', 'Isla', 'Oliver', 'Isabella', 'Jasper',
- 'Cora', 'Levi', 'Violet', 'Arthur', 'Mia', 'Thomas', 'Elizabeth'];
with
getCat_NewsList()
- this.http.get('http://localhost:1858/api/Cat_News').map((data: Response) =>{
- return data.json() as ICategoryModule[];
- }).toPromise().then(x=>{
- this.Cat_NewsList =x;
- });
i want this
To show my menu instead of the fixed menu

Muthu KumarRank #935 · 2.2K reputationPosted Feb 22, 2019, 1:13 AM EST
Here is an example for get json file data to component,
Note:-
You need mention url path of an file.
https://stackoverflow.com/questions/47206924/angular-5-service-to-read-local-json-file
https://stackblitz.com/edit/angular-local-json?file=assets%2Ftest.json
bishoe nbRank #2,471 · 568 reputationPosted Feb 22, 2019, 7:46 AM EST
Muthu Kumar
Sorry I do not understand the example I want to replace const NAMES = ['Maia', 'Asher', 'Olivia', 'Atticus', 'Amelia', 'Jack', 'Charlotte', 'Theodore', 'Isla', 'Oliver', 'Isabella', 'Jasper', 'Cora', 'Levi', 'Violet', 'Arthur', 'Mia', 'Thomas', 'Elizabeth']; by thisAnswer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts