These are chat archives for AngularClass/angular2-webpack-starter
An Angular 2 Webpack Starter kit featuring Angular 2, Router, TypeScript, and Webpack by AngularClass
hi @dancancro in my case, I used Swagger to generate an API client and that’s the only API service I have. It is generated outside of
src by a
postinstall npm entry.
Indeed the service is anyhow closer to the application state, but I don’t see them together, as the app state include other stuff that aren’t coming from API, such as calculated values, temporary stuff, cached data, user interactions, etc… I’d better keep the API service in something like
local backend. i wonder if that'll catch on :smile:
@dancancro I think the idea of a “global app state” is quite plastic. I think most of it is like a local backend, indeed, but not completely, and you probably will find people with different understandings implementing it in different ways.
I’m not very experient on Redux either, so, I’m always curious to see how other people are doing too