pass index page data from angular controller