A
A
annaumof2020-07-18 22:09:23
Angular
annaumof, 2020-07-18 22:09:23

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

1 answer(s)
L
lrsvolk, 2020-07-19
@lrsvolk

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 your question

Ask a Question

731 491 924 answers to any question