Components, Templates, Data Binding, Directives and Pipes: Overview
Learn Components, Templates, Data Binding, Directives and Pipes: Overview (Phase 1 · Angular Fundamentals (Core), Angular) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
A first component • A component is a TypeScript class decorated with @Component , which connects it to an HTML template and styles. The selector is the custom HTML tag you use to place it. • Standalone components (the default in modern Angular) list what they use in imports ; no NgModule is needed. • Create one with ng g c courses/course-card .