Working with agular on server, but not on platform