In this article, we will follow a step-by-step approach to deploy an Angular application to a GitHub. We will create a project using Angular CLI and then deploy that to GitHub. Let us get started. Step 1 To create a project using Angular CLI. Run the command: ng new demo You need to make sure that AngularContinueContinue reading “How to deploy an Angular application to GitHub”
Tag Archives: Angular
How to do Conditional Validation on valueChanges method in Angular Reactive Forms
Read full article on the Infragistics blog In this blog post, we will learn to use Angular Reactive Forms value change detection and enable conditional validation on basis of that. Learn How to Create Your First Angular Reactive Form here Let us say you have a Reactive Form created using FormBuilder class as shown below:ContinueContinue reading “How to do Conditional Validation on valueChanges method in Angular Reactive Forms”
Simplifying ViewChild and ContentChild in Angular
Read full article on the Infragistics blog In this blog post, we will learn about ViewChild and ContentChild in Angular. Essentially ViewChild and ContentChild are used for component communication in Angular. Therefore, if a parent component wants access of child component then it uses ViewChild or ContentChild. Any component, directive, or element which is partContinueContinue reading “Simplifying ViewChild and ContentChild in Angular”
How to dynamically create a Component in Angular
You can read full article on the Infragistics blog In this article, we will learn to create a component dynamically. You may need to load a component dynamically in various scenarios such as want to show a popup modal etc. Let us assume that, we have a component as listed below, which we will loadContinueContinue reading “How to dynamically create a Component in Angular”
Step by Step creating Custom Pipe in Angular
Read full article on the Infragistics blog Angular pipes take data as input and transform it to your desired output. For example, using interpolation you are displaying name of the product. Now you want the product name always displayed in the uppercase. You can do this using Angular pipe uppercase. https://gist.github.com/debugmodedotnet/929abeb0c328af3e9a266b49c11a811c In above component, productNameContinueContinue reading “Step by Step creating Custom Pipe in Angular”
How to create Custom Validator for Angular Reactive Forms
Learn full article on the Infragistics blog In this blog post, we will learn to create custom validators in Angular Reactive Forms. If you are new to reactive forms, learn how to create your first Angular reactive form here. Let’s say we have a login form as shown in the listing below. Currently, the formContinueContinue reading “How to create Custom Validator for Angular Reactive Forms”
Hosted 11th free Angular session
On 13 January 2018, geek97 hosted 11th free session on Angular in Gurgaon. You can find detail of meetup hereAround 35 senior Angular Developers attended the meetup and Dhananjay Kumar delivered the sessions. There were two sessions:Component Communications @Input @Output EventEmitterTemp Ref variable Reactive Forms FormControl FormGroupValidation Custom Validation You can learn in details aboutContinueContinue reading “Hosted 11th free Angular session”
Understanding @Output and EventEmitter in Angular
Read full article on the Infragistics blog Angular is based on a one-directional data flow and does not have two-way data binding. So, how do you get a component to emit an event to another component? In Angular, a component can emit an event using @Output and EventEmitter. Both are parts of the @angular/core.ContinueContinue reading “Understanding @Output and EventEmitter in Angular”
What are @HostBinding() and @HostListener() in Angular?
Read full article on the Infragistics blog To understand @HostListener and @HostBinding, you should have basic knowledge about directives in Angular. There are three types of directives in Angular: Component Attribute Directive Structural Directive The basic difference between a component and a directive is that a component has a template, whereas an attribute or structuralContinueContinue reading “What are @HostBinding() and @HostListener() in Angular?”
How to Create Your First Angular Reactive Form
Read full article on the Infragistics blog Out of the box, Angular provides us with two types of forms: Template Driven Forms Reactive Forms In Template Driven Forms, you create controls on the component template and bind data using ngModel. With these, you do not create controls, form objects, or write code to work withContinueContinue reading “How to Create Your First Angular Reactive Form”