Skip to content

Instantly share code, notes, and snippets.

@LayZeeDK
Created August 23, 2022 08:45
Show Gist options
  • Save LayZeeDK/ae388e18cf6a7cc2cfabc3828995aa01 to your computer and use it in GitHub Desktop.
Save LayZeeDK/ae388e18cf6a7cc2cfabc3828995aa01 to your computer and use it in GitHub Desktop.
Should I use an Angular module?
graph TD
  A[Should I use an Angular module?] --> B{Is it a component?}
  B -->|Yes| X[Don't use an Angular module]
  B -->|No| C{Is it a directive?}
  C -->|Yes| X
  C -->|No| D{Is it a pipe?}
  D -->|Yes| X
  D -->|No| E{Is it a service?}
  E -->|Yes| X
  E -->|No| F{Is it a provider?}
  F -->|Yes| X
  F -->|No| G{Is it an application?}
  G -->|Yes| X
  G -->|No| H{Is it a library?}
  H -->|Yes| X
  H -->|No| X
Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment