Connect models between server and angular.