angular with middleman