Conversion to Typescript : <p>Please refer the below link</p>

<p>Please visit <a href="https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-directions" rel="nofollow noreferrer">https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-directions</a></p>

<p>I am trying to convert the same application to Angular 6</p>

<p>But not been able to do so.</p>

<p>1) The HTML part i copied in test.component.html
2) the javascript part am trying to convert to typescript. This is where am not good.</p>

<p>Sorry i could not paste the code here since its all messed up with errors.</p>

<p>Suggest how to do or any ideas to convert the code, the place where am stuck is creation of events.</p>

<p>Regards,
Amit</p>

<p>Same code to be in angular 6</p>
