angularJS with slim api