How to replace static data with a data list angular and web api 4
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