title: Codeigniter content fetched each X seconds
body: <p>I have a Codeigniter framework vote app, I want to add a new feature in the homepage, update every X seconds the homepage, I already prepared the SQL query to return the items votes with item ID, and Codeigniter will serve it JSON format.</p>
  
  <p>Front-end I'm working with angularjs, what is the best method to auto fetch the JSON content each X seconds.</p>