accessing index of catalogue element using angular service