January 2018
Intermediate to advanced
332 pages
7h 36m
English
Putting this all together and adding simple changes to our UI, we can finally search through a list and show the results in a very fast and efficient manner.
With the previous changes incorporated, our app.component.ts is ready to take its final form:
import { Component } from '@angular/core';import {Trie} from "../utils/trie";@Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css']})export class AppComponent { countries = ["Afghanistan","Albania","Algeria","Andorra","Angola","Anguilla","Antigua & Barbuda","Argentina","Armenia","Aruba","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bermuda","Bhutan","Bolivia" ...
Read now
Unlock full access