Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. Type 'Observable<{ "CardModel": { "theme": string; "title": string; "description": string; }[]; }>' is not assignable to type 'Observable<CardModel[]>'.
  2.  
  3. @Injectable()
  4. export class PlanService {
  5. constructor() {}
  6.  
  7. public getPlans(): Observable<CardModel[]> {
  8. return of(PlanServiceMock.plansMockData);
  9. }
  10. }
  11.  
  12. export class PlanServiceMock {
  13. public static readonly plansMockData = {
  14. "CardModel": [
  15. {
  16. "theme": "",
  17. "title": "this is title",
  18. "description": "this is description"
  19. }
  20. ]
  21. };
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement