Back to Browse

Angular tutorial for beginner | Angular- part2- Component | Introduction to Angular Components .

16 views
Sep 18, 2022
14:02

Components are the main building block for Angular applications. Each component consists of: An HTML template that declares what renders on the page A TypeScript class that defines behavior A CSS selector that defines how the component is used in a template Optionally, CSS styles applied to the template This topic describes how to create and configure an Angular component. Creating a component using CLI From a terminal window, navigate to the directory containing your application. Run the ng generate component component-name command, where component-name is the name of your new component. Some reference links: https://angular.io/guide/component-overview (Angular official website) https://angular.io/guide/architecture-components https://github.com/subhrajyotiw5rtc/Angular/tree/angular-part-02 (Github link for todays session) #angular #components #ng #createcomponent

Download

0 formats

No download links available.

Angular tutorial for beginner | Angular- part2- Component | Introduction to Angular Components . | NatokHD