title: How to access the global javascript method using angular $window object?
body: <p>How to access the global javascript function using angularJS $window object and assign/bind it to the ng-model/scope variable?
  Have a javascript method defined outside scope of angular, need to access that method and get the returned value and assign/set it to scope variable!
  <a href="http://plnkr.co/edit/EaXbLDCvsRlMO0PXTfqM?p=preview" rel="nofollow">LINK</a></p>