title: How to get id of clicked placemark on yandex maps?
body: <p>I've trying to get id of clicked placemark, but I can't find the way to do that.</p>
  
  <p>I have the following code on TypeScript:</p>
  
  <pre><code>var map = new ymaps.Map( 'map', {
      center   : [55.76, 37.64],
      zoom     : 7
  } );
  
  var objectManager = new ymaps.ObjectManager( {} );
  this.objectManager.events.add(['click'], function(event){
  
      // here i want to get placemark id
  
  });
  map.geoObjects.add( objectManager );
  
  $.get( "/getObjects", {}, ( response:ServerResponse ) =&gt; {
      objectManager.add( data.objects );
  }, "json" );
  </code></pre>
  
  <p>Here is the ServerResponse interface:</p>
  
  <pre><code>interface ServerResponse {
      status : string;
      count  : number;
      objects: {
          id      : number; // this is id, which I want to get
          type    : string;
          geometry: {
              type       : string;
              coordinates: string[]
          };
      }[]
  }
  </code></pre>
  
  <p>So here is the question: how can i get id of placemark, which was clicked?</p>