this.http.get('http://localhost:4200/api/items').subscribe(data => {
this.results = data['results'];
});.directive('popup',function(){
return function(scope, element){
element.popup();
}
}).directive('popup',[function(){
return function(scope, element){
element.popup();
}
}])app.service('rest',function($http, $location, $routeParams) {
.....................app.service('rest',['$http', '$location', '$routeParams',function($http, $location, $routeParams) {