My Blog

My WordPress Blog

My Blog

My WordPress Blog

04. Components

Elements

What is an Angular Element? Angular elements are reusable components that have been transformed into custom elements (also called Web Components). Angular provides a simple and effective method to create Web components. Web components are custom HTML elements available in native HTML specifications to extend the features/tags of the HTML document. It can be created […]

Content projection

What is Content Projection in Angular? Content projection is a technique available in the Angular component to include external content (from consumer of the component) along with layout and styles in the specific area of the component template. Different Implementation of Content Projection The different ways in which we can implement content projection are: Single-Slot […]

Component Styling

Styling is the process of designing and formatting the visual presentation of web pages. Since Angular applications are composed of multiple components, styles are applied to them individually. Angular components can be styled using CSS as well as popular pre-processors such as Sass and Less. Let’s see different techniques of applying styles to the Angular […]

Component Interaction

Sharing Data between Angular Components Angular provides options to share data from parent component to child component as well as, child to parent component. Also, it is possible to share data between any other component within the Angular application. Component is a TypeScript class decorated with the @Component decorator. It is used to create the user interface. Data sharing is the […]

Component Lifecycle

Angular component goes through a series of stages/events during its existence. Before moving further in the journey of learning Angular, it is necessary to understand how a component interacts with the framework and the DOM throughout its existence. When an angular component is constructed, it first goes through the change detection phase, where it checks whether there […]

Components

Components are the building blocks of an Angular application. The primary use of Angular Component is to generate a section of web page called View. By combining different views, a single application is created. Every component will have an associated template and it will be called in order to generate views. Let us learn the basic concept […]

Scroll to top