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

bishoe nbPosted Feb 22, 2019, 12:46 PM
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 thisMuthu KumarPosted Feb 22, 2019, 6:13 AM
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