article.service.ts
328 Bytes
import { Injectable, Inject } from "ng-forward";
@Injectable()
@Inject("Restangular")
export class ArticleService {
constructor(private Restangular: any) {
}
getByProfile(profileId: number, filters: any) {
return this.Restangular.service('profiles').one(profileId).one('articles').get(filters);
}
}