TIL 5-29-21

Dependency Injection & services

When you inject a service into a component constructor using the private keyword, it’s only accessible to the component Typescript, if you want to use that service directly in the component template, use the public keyword


  // Components defined in this module
  declarations: [
  // Components used in this module
  imports: [
  // Components that can be imported by other modules
  exports: [

Angular Schematics

Learnt that these are a thing for generating code with boilerplate stuff.