I have started angular few days back, as i am beginner i just go to know how to implement components in angular7. I am looking forward to implement select2 with single select. I just google i have not get right way through.

I followed this resource https://therichpost.com/how-to-implement-select2-in-angular-7 problem with this resource is when user selects value suggestion are not closing properly and the data is not loading from typescript.

how can i implement


<div class="row">
  <div class="col-md-12 text-center ">



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

  selector: 'app-home',
  templateUrl: './home.component.html',
  styleUrls: ['./home.component.css']
export class HomeComponent implements OnInit {

  constructor() { }

  ngOnInit() {


0 Answers