recettes/web/src/app/receipes.service.ts

20 lines
354 B
TypeScript

import { Injectable } from '@angular/core';import { Observable, of } from 'rxjs';
@Injectable({
providedIn: 'root'
})
export class ReceipesService {
private RECEIPES = [
{ title: 'pates carbo', id: 1 },
{ title: 'tartes aux pommes', id: 2 }
]
constructor() { }
allReceipes(): Observable<any[]> {
return of(this.RECEIPES)
}
}