vkelman (54) [Avatar] Offline
#1
In Angular 6 it now doesn't add provider to app.module, but instead generates product.service.ts with

@Injectable({
  providedIn: 'root'
})


which, according to https://blog.ninja-squad.com/2018/05/04/what-is-new-angular-6/ allows to load service lazily. It looks like "-m" option is ignored now.

What is not clear to me: now by looking at app.module we cannot determine which providers does it use. Isn't it making code much harder to understand?