angular application for $resource demo