index complete, angular to php