0.1.0 • Published 8 years ago

ng-qauto-complete v0.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
8 years ago

QAutoComplete

npm install ng-qcontrols

Example

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

@Component({
    selector: "auto-complete-example",
    template: `
            <QAutoComplete 
                placeholder="How do I set the size of an HTML text box?" 
                displayProperty="formatted_address"
                pathToData="results"
                [source]="source" 
                [(model)]="model">
            </QAutoComplete>
            <button (click)="show()">Show</button>
    `
})
export class AutoCompleteExample {

    model = { formatted_address : "Hello" };
    source = "https://maps.googleapis.com/maps/api/geocode/json?address=:keyword";

    show() {
        console.log(this.model);
    }
}