JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Gantt › Could someone please assist me with: Gantt? Thanks in advance!
Can I use Smart Gantt with a REST API in Angular?
Hi,
Sure, follow https://www.htmlelements.com/docs/gantt/ to get started. Then, connect to a REST API using Angular’s HttpClient
import { HttpClient } from '@angular/common/http'; tasks: any[] = []; constructor(private http: HttpClient) {} ngOnInit(): void { this.http.get<any[]>('https://your-api.com/gantt-data').subscribe(data => { this.tasks = data; }); }
hope this helps.
Regards, Markov
Smart UI team https://www.htmlelements.com/