title: Sublime video player in Angular app
body: <p><br />
  I am using sublime video player, but I got troubles accessing the javascript API in my controller in my AngularJS app. I am accessing it like this:</p>
  
  <pre><code>sublime.ready(function () { 
     var player = sublime('cacplayer'); 
  }); 
  </code></pre>
  
  <p>But I am getting error with calling "ready" of undefined. But when I try accessing the sublime object right in the chrome console, it works perfectly. I have tried accessing the global object through $window, when the $viewContentLoaded event, but no luck on any front. What am I missing? <br /></p>
  
  <p>I thought that it was because the player is not loaded yet. So I included into the head of the page, no luck either. Using jQuery did not help either.</p>
  
  <p><br />Thanks</p>