How to add on Change Event on Dropdown in Angular?

By Hardik Savani March 14, 2020 Category : Angular

In this tutorial, i will show you angular dropdown on change event. Here you will learn change event on select box in angular. i explained simply about angular change event on select. Here you will learn change event in dropdown angular. Here, Creating a basic example of get dropdown selected value on change in angular.

You can easily get dropdown selected value on change event in angular 6, angular 7, angular 8, angular 9, angular 10, angular 11 and angular 12.

Here, i will give you very simple example to getting selected option value by change event with reactive form. here we will create one website list dropdown and if you choose anyone then it will by print console selected value on change event. we created changeWebsite() that will call on change of dropdown value. so let's see app.component.html and app.component.ts file bellow.

So, let's see example


<div class="container">

<h1>Angular Select Dropdown Example -</h1>

<form [formGroup]="form" (ngSubmit)="submit()">

<div class="form-group">

<label for="website">Website:</label>

<select formControlName="website" class="form-control" (change)="changeWebsite($event)">

<option disabled>Select Website</option>

<option>Choose Website</option>

<option *ngFor="let web of websiteList">{{web}}</option>


<div *ngIf=" &&" class="alert alert-danger">

<div *ngIf="">Name is required.</div>



<button class="btn btn-primary" type="submit" [disabled]="!form.valid">Submit</button>




import { Component } from '@angular/core';

import { FormGroup, FormControl, Validators} from '@angular/forms';


selector: 'app-root',

templateUrl: './app.component.html',

styleUrls: ['./app.component.css']


export class AppComponent {

websiteList: any = ['', '', '']

form = new FormGroup({

website: new FormControl('', Validators.required)


get f(){

return this.form.controls;





changeWebsite(e) {





I hope it can help you...