20 lines
354 B
TypeScript
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)
|
|
}
|
|
|
|
}
|