From 735a9c632d24777118320383bf8b61fbe3dfa97c Mon Sep 17 00:00:00 2001 From: Ruby Boyarski Date: Sat, 29 Apr 2017 08:52:44 +0300 Subject: [PATCH] docs: Example for form autocmplete selection #245 --- sample/src/app/components/forms.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sample/src/app/components/forms.ts b/sample/src/app/components/forms.ts index b803478..09f8248 100644 --- a/sample/src/app/components/forms.ts +++ b/sample/src/app/components/forms.ts @@ -17,7 +17,7 @@ import {Component,OnInit} from "@angular/core"
- +
@@ -151,6 +151,12 @@ export class Forms implements OnInit { radioButtonValue = 3; maxLength = 20; + autocompleteInit = { + 'data': {'apple': null, 'google': null}, + onAutocomplete: (val) => { + console.log(val); + }, + }; public ngOnInit() { window.setTimeout(()=>{