Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- getMenuPage(skip, limit): Observable<any>{
- return this._http.get(`${this.url}/menuspage?page=${skip}&size=${limit}`)
- .map(res => res.json());
- }
- public title: string;
- public menu: Menu[];
- constructor(
- private _menuService: MenuAdminService
- ) {
- this.title = 'Lista de Cardápios';
- }
- ngOnInit() {
- this.getMenusPage(0,4);
- }
- getMenusPage(skip, limit) {
- this._menuService.getMenuPage(skip, limit).subscribe(
- response => {
- console.log(response.data)
- if (!response.data) {
- } else {
- this.menu = response.data;
- }
- },
- error => {
- console.log(<any>error);
- }
- );
- }
- Array(0)length: 0__proto__: Array(0)
Add Comment
Please, Sign In to add comment