integrating with restangular
creating debug directive