Connect models between server and angular. Javascript client.