---
title: "Discussion on \"Change ion-input value programmatically\" | Hashnode"
description: "Discussion on \"Change ion-input value programmatically\". @ViewChild('googlePlace') googlePlace;\nDefine in template variable like this\n<ion-input #googlePlace class=\"rounded-inp single-inp\" type=\"text\" placeholder=\"Location\"></ion-input>\n//set values like this;this.googlePlace._native.nativeElement.value \\=..."
url: "https://hashnode.com/posts/change-ion-input-value-programmatically-ad7915f23185/632dea403a049a0d9db74286"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Change ion-input value programmatically](https://blog.junaidahmed.dev/change-ion-input-value-programmatically-ad7915f23185?utm_source=hashnode&utm_medium=feed)

@ViewChild('googlePlace') googlePlace; Define in template variable like this <ion-input #googlePlace class="rounded-inp single-inp" type="text" placeholder="Location"></ion-input> //set values like this;this.googlePlace.\_native.nativeElement.value \\=...

Aug 16, 2018 · 1 min read · blog.junaidahmed.dev  
Read the article

## Written by

[Junaid Ahmed](https://hashnode.com/@junaidahmed)

@junaidahmed

  
[View profile](https://hashnode.com/@junaidahmed)

A half-stack JavaScript developer with a focus on the frontend.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
