Add index and search using Angular