bishoe nb

bishoe nb

  • 1k
  • 623
  • 78.2k

How to replace static data with a data list angular & api

Feb 21 2019 6:06 AM
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
  1. const NAMES = ['Maia''Asher''Olivia''Atticus''Amelia''Jack',  
  2. 'Charlotte''Theodore''Isla''Oliver''Isabella''Jasper',  
  3. 'Cora''Levi''Violet''Arthur''Mia''Thomas''Elizabeth'];  
with 
getCat_NewsList()
  1. this.http.get('http://localhost:1858/api/Cat_News').map((data: Response) =>{    
  2.   return data.json() as ICategoryModule[];    
  3.   
  4. }).toPromise().then(x=>{    
  5.   this.Cat_NewsList =x;    
  6. });
i want this
To show my menu instead of the fixed menu

Answers (2)