title: How to get reference to model property by knowing it's path in angular js?
body: <p>I'm quite new with angular js, situation is this: I have javascript datepicker, which is input with popup for date selection, input is bound to angular model. </p>
  
  <p>Problem as I understand is that input value is changed from javascript, not from ui, so angular js does not know, that value has changed, so it does not update model value.</p>
  
  <p>I've found <a href="https://stackoverflow.com/questions/13577983/pushing-jquery-plugin-input-value-to-a-model-in-angularjs">sample with color picker</a>, it would almost fit, except the fact, that I don't wish to hardcode what property to update.</p>
  
  <p>I would imagine following workflow:<br>
     1. subscribe to all datepickers' <code>onchanged</code> event<br>
     2. when that event is fired, read model path from input (for example reading ng-model attribute value, may be there's better way?)<br>
     3. and use that path to update value in model. I could split path by using dot and access property using those parts, but I somehow think, that this should be already implemented in angular js (at least in inner routines).</p>