Yes, the $resource is top level prop on input data. So you cannot use it inside #each. This is the part where you should use the ../