search.component.ts 550 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { Component } from '@angular/core';
import { FormBuilder, FormGroup } from '@angular/forms';

@Component({
    selector: 'app-search',
    templateUrl: './search.component.html',
    styleUrls: ['./search.component.scss']
})
export class SearchComponent {
    form: FormGroup;

    // TODO: Make dynamic
    autocompleteOptions: string[] = ['Water Fountain', 'Johnson Center'];

    constructor(fb: FormBuilder) {
        this.form = fb.group({
            search: ''
        });

        // TODO: Actually do stuff when user searches
    }
}