Edupala

Comprehensive Full Stack Development Tutorial: Learn Ionic, Angular, React, React Native, and Node.js with JavaScript

Angular

What is the angular service and how to implement it .?

Angular Service contains a sharable and reusable Typescript class that contains centralized business logic that is shared across or reused across various related and unrelated components. Angular service can be instantiated and injected into components and other services. Unlike components and directives, services are without a user interface. We have few objectives in this tutorial, […]

How to implement Angular ngSwitch Directive with Examples

Angular the ngSwitch directive, we can control the display of blocks of elements within DOM based on conditions. Angular has a lot of built-in directives: *ngIf , *ngFor , *ngSwitch. These directives are so-called structural directives, which are responsible for changing the layout of the HTML by adding, removing, or modifying elements from the DOM. […]

How to implement Angular renderer2 with an example

 An angular Renderer2 class is an abstraction provided by Angular in the form of a service that allows manipulating elements in our application without having to touch the DOM directly. In our previous articles, we learned the pros and cons of using angular elementRef to directly access DOM element manipulation. An Angular app consists mainly of […]

How to use and create angular custom directive?

The angular custom directive allows us to create our own directive, which is specific to our application needs, even though the Angular built-in directive provides the most common task needed for the web application. Angular provides a good range of built-in directives. We can also create our own directives to solve problems that are specific […]

Angular ContentChild and ContentChildren decorator

In Angular, we have different ways of communication between components. We can query and manipulate the child element/component using different decorators that Angular provides, like @ViewChild and @ContentChild depending on where that element might occur. We need to use the angular ContentChild/ContentChildren decorator to work with the elements inside the “ng-content” container. The @ContentChild decorator […]

Scroll to top