Skip to main content

Resolution modifiers

Learn Resolution modifiers (Module 8 · Services and Dependency Injection, Angular) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Optional dependencies • Normally if a token has no provider Angular throws an error. Mark the dependency optional and you get null instead, like a guest who may not show up. Useful for plugins or components that work with or without a parent.

More lessons in Module 8 · Services and Dependency Injection