Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ion-item>
- <ion-label stacked>Test</ion-label>
- <ion-input formControlName="teste" [ngModel]="teste" type="text"></ion-input>
- <button large type="button" (click)="input_to_voice($event)" clear ion-button icon-only item-end>
- <ion-icon name="mic"></ion-icon>
- </button>
- </ion-item>
- input_to_voice(event, value) {
- //here I wanted to get a reference to the input value, but I'm stuck
- console.log(event.target.parentElement.parentElement);
- let options = {
- language: "en-GB"
- };
- // Start the recognition process
- this.speechRecognition.startListening(options)
- .subscribe(
- (matches: Array<string>) => console.log(matches),
- (onerror) => console.log('error:', onerror)
- )
- }
Add Comment
Please, Sign In to add comment