Services & DI
Services & DI (and) 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 Services & DI (and).
From the example next to this theory — Services & DI: toggle open.
Trap — new MarksService() in each component. Fix that before you talk about advanced Angular.
Viva — what is Services & DI (and)? Then show @Injectable + constructor inject. Then name the trap.
MarksPage ──inject──► MarksService ReportPage ──inject──► MarksService one root instance
What is Services & DI (and)? Show this: @Injectable + constructor inject. Trap: new MarksService() in each component.