Tag: angular
Service layer in Angular
Angular service is very useful to organize business logic or data in the different components of an application. The methods written in the service file can be invoked from different typescript files of a component. The controller is responsible for
Template-Driven Forms
Introduction Template-driven forms are the kind of forms in Angular. In Template Driven Forms, we specify validations using directives and attributes. In this approach, we define the template that we want to use in forms. So, this approach is called
Component Lifecycle of Angular
Introduction Components are like a building block that controls the HTML view of your application. They can communicate with other components to provide functionality to the application. The components are denoted by @Components. An application can have more than one
Reactive Forms In Angular
Introduction to Reactive forms In Reactive Forms, we use Modal driven approach to handle form inputs which changes over time. Reactive forms are most preferred to use. It is flexible to use and provides many benefits. For example, By using
Routing In Angular
Introduction to Angular Angular is a front-end framework that is used for building client-side web applications for the mobile and desktop web and Routing is one of the important features for any front-end framework. Angular Router It enables developers to
Reactive Form In Angular
In Angular there are two ways to work with forms: Template-driven forms: Template-driven forms are the default way to work with forms in Angular which is used as an internal representation of the form. Reactive forms: Reactive forms allow us