Skip to main content

Posts

Showing posts with the label Create Angular 2 Autocomplete

Create Angular 2 Autocomplete Examples

//IMPORT ANGULAR 2 CORE COMPONENTS. import {Component} from ' angular2/core ' ; //INITIALIZATIONS OF SELECTOR AND TEMPLATE. @Component({     selector: ' autocomplete ' ,     template: 'autocomplete-filter.html'                 }); //THIS IS AUTOCOMPLETE COMPONENTS APP CLASS. export class ComponentApp {     //COUNTRIES LIST     public countries = [{ "name" : "Brazil" , "code" : "BR" },                         { "name" : "Canada" , "code" : "CA" },                         { "name" : "France" , "code" : "FR" },                ...