Advanced DI
Advanced DI is a Angular topic. In plain words you use it for MarksService shared by two pages in the campus app. Don’t start with a slogan — start with that picture.
Smallest example: @Injectable + constructor inject. Type it, run it, and say what you see. If you can do that from memory, you know Advanced DI.
From the example next to this theory — Advanced DI: toggle open.
Trap — new MarksService() in each component. Fix that before you talk about advanced Angular.
Viva — what is Advanced DI? Then show @Injectable + constructor inject. Then name the trap.
MarksPage ──inject──► MarksService ReportPage ──inject──► MarksService one root instance
What is Advanced DI? Show this: @Injectable + constructor inject. Trap: new MarksService() in each component.