Return to site

ANGULAR INTERVIEW QUESTION: What are the main parts of an Angular application?

July 1, 2021

There are nine parts:

𝟏) ð“ðĄðž 𝐜ðĻðĶðĐðĻ𝐧𝐞𝐧𝐭𝐎: a component is TypeScript class which handles the business, and the GUI.

𝟐) ð“ðĄðž 𝐭𝐞ðĶðĐðĨ𝐚𝐭𝐞𝐎: each component is bound to a template to manage the display.

𝟑) 𝐃𝐚𝐭𝐚-𝐛ðĒ𝐧𝐝ðĒ𝐧𝐠: gear which match the component data with the template.

𝟒) 𝐃𝐞𝐜ðĻðŦ𝐚𝐭ðĻðŦ𝐎: metadata to describe a class for Angular inner processing.

𝟓) 𝐌ðĻ𝐝ðŪðĨ𝐞𝐎: Aggregation of components, services, directives... related to a specific business topic.

𝟔) 𝐃ðĒðŦ𝐞𝐜𝐭ðĒðŊ𝐞𝐎: class that extends the power HTML with custom features.

𝟕) 𝐑ðĻðŪ𝐭ðĒ𝐧𝐠: ðĄðšð§ððĨ𝐞 the URLs so that it matches the right component.

𝟖) 𝐒𝐞ðŦðŊðĒ𝐜𝐞𝐎: class that can be injected elsewhere bringing utility functions.

𝟗) 𝐃𝐞ðĐ𝐞𝐧𝐝𝐞𝐧𝐜ðē ðĒ𝐧ðĢ𝐞𝐜𝐭ðĒðĻ𝐧: coupling of classes through components calls in the constructor of the requiring class.