CoreModule SharedModule - ChoDragon9/posts GitHub Wiki

CoreModule

  • μ „μ—­μ—μ„œ μ‚¬μš©ν•  μš”μ†Œ
  • μ‹±κΈ€ν†€μœΌλ‘œ μ‚¬μš©ν•΄μ•Ό λ˜λŠ” μš”μ†Œ

예

  • 인증
  • footer/header μš”μ†Œ
  • http μš”μ²­ μ„œλΉ„μŠ€
  • κ°€λ“œ

SharedModule

  • μ „μ—­μ—μ„œ μ‚¬μš©λ˜μ§€ μ•Šκ³ , λ‹€λ₯Έ λͺ¨λ“ˆμ—μ„œ μž¬μ‚¬μš©λ˜λŠ” μš”μ†Œ
  • 피쳐 λͺ¨λ“ˆμ—μ„œ μ •μ˜ν•΄ μ‚¬μš©ν•  μš”μ†Œ
  • λ…λ¦½μ μœΌλ‘œ λ™μž‘ν•˜λŠ” μš”μ†Œ

예

  • λ‘œλ”© μ•„μ΄μ½˜
  • λ²„νŠΌ
  • λ””λ ‰ν‹°λΈŒ
  • νŒŒμ΄ν”„
  • λͺ¨λΈ

κ²°λ‘ 

  • μ‚¬μš© 방법에 λ”°λ₯Έ ꡬ뢄을 ν•΄μ•Ό 함
  • 전역이면 Core, 독립적이면 Shared

μ°Έμ‘°: Google Developer Export For Angular

https://medium.com/@tomastrajan/6-best-practices-pro-tips-for-angular-cli-better-developer-experience-7b328bc9db81