Categories
What tools do you use when developing with Angular?
Actually the question is: When there is no ready api, how to write frontend? What options are possible and the degree of their complexity (I'm a beginner).
Answer the question
In order to leave comments, you need to log in
Mock data. For example, you should have a service like this:
@Injectable(...) class TodoListApi { constructor(private http: HttpClient){} getTodoItems(limit = 50, offset = 0): Observable<TodoItem[]> { // return this.http.get('YOUR_URL') return of([...]) } }
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question