Sravani Alamanda has Published 28 Articles

How to use filters in AngularJS?

Sravani Alamanda

Sravani Alamanda

Updated on 21-Feb-2023 18:43:05

197 Views

First, we look into what filters in angularjs and then how to use them. Filters are used to format the value of an expression to display on the UI to the user without changing the original format. Filters will be added to an expression using the pipe | operator. Like, ... Read More

How to use directives in angular 8?

Sravani Alamanda

Sravani Alamanda

Updated on 21-Feb-2023 18:32:00

176 Views

Directives in Angular 8, are classes that can add new behavior to the elements in the template. Directives are used to manipulate the DOM. We can change the behavior and appearance of the DOM elements using directives. Simply we can use the HTML using directives. Using directives, we can achieve ... Read More

How to use an Anagular 8 Service?

Sravani Alamanda

Sravani Alamanda

Updated on 21-Feb-2023 18:28:01

105 Views

In Angular, services are singleton objects which normally get instantiated only once for the entire angular application. Every service contains several methods and that includes some functionality to do. It is a mechanism to share functionality or responsibility within one or more than components. We know, using angular we can ... Read More

How to transfer data from parent to child component using Angular 8?

Sravani Alamanda

Sravani Alamanda

Updated on 21-Feb-2023 18:25:24

10K+ Views

In Angular 8, to transfer data from the parent component to the child component, we use the @Input decorator. The @Input decorator is one of the property decorators in angular. Now, Let’s look into the steps of how the @Input decorator works from the parent component to the child component. ... Read More

How to transfer data from child to parent component in Angular 8?

Sravani Alamanda

Sravani Alamanda

Updated on 21-Feb-2023 18:23:02

7K+ Views

In this, we will learn how to get the data from the child component to the parent component. In angular 8, using @Output decorator and EventEmitter we can transfer the data from the child component to the parent component. Here, takes an example like in the child component we have ... Read More

How to inject a service into the component in Angular 8?

Sravani Alamanda

Sravani Alamanda

Updated on 21-Feb-2023 18:18:48

4K+ Views

In Angular, services are singleton objects which normally get instantiated only once for the entire angular application. Every service contains several methods and that includes some functionality to do. It is a mechanism to share functionality or responsibility within one or more than components. We know, using Angular we can ... Read More

How to display tables using AngularJS?

Sravani Alamanda

Sravani Alamanda

Updated on 21-Feb-2023 18:14:43

1K+ Views

The data in tables are basically repeatable. In AngularJS, a better way to display tables is the ng-repeat directive. The ng-repeat directive will help us to loop through the array data in the DOM elements and helps us to display tables very easily. Let’s check how to use ng-repeat for ... Read More

Difference between constructor and ngOnInit in Angular 8

Sravani Alamanda

Sravani Alamanda

Updated on 21-Feb-2023 17:46:31

8K+ Views

We can create robust applications using a number of life cycle functions using Angular. As it is the response of the event, the constructor and ngOnInit play important roles in developing applications. May this constructor and ngOnInit terms often confuse us. Constructor and ngOnInit will be available from the life ... Read More

How to create custom directives in Angular 8?

Sravani Alamanda

Sravani Alamanda

Updated on 21-Feb-2023 16:53:04

236 Views

In Angular, directives are one of the most important elements. Directives are building blocks like components in angular framework to build application. A directive used to modify the DOM by changing the appearance, behavior, or layout of DOM elements. Directives are used to provide or generate new HTML based ... Read More

How to add event listeners in HTML using AngularJS?

Sravani Alamanda

Sravani Alamanda

Updated on 21-Feb-2023 16:47:58

3K+ Views

In AngularJS, events help us to perform particular tasks, based on the action. AngularJS is rich in events and has a simple model for adding event listeners to the HTML. AngularJS supports many events related to the mouse and keyboard. All these events are applied to the HTML elements. In ... Read More

Advertisements