5

I am trying to figure out how to mock data by configuration like I would in Ember Mirage but in Angular 2. I know I can build something from scratch using DI and MockBackend to intercept calls in HTTP and return data. Does Angular 2 or Angular 2 CLI have something built in I am missing, or a standard package that does this?

5
  • 2
    With 13K rep you should know by now that asking for recommendations is off-topic. Commented Jun 17, 2016 at 13:35
  • @j08691 I am actually curious to know the answer to this/waiting for an answer to this...Please don't flag. Commented Jun 17, 2016 at 13:44
  • 1
    @FrankTudor - You may be curious, however that doesn't make it any less off-topic for SO. Commented Jun 17, 2016 at 13:50
  • I changed the text so this is a general question. Commented Jun 17, 2016 at 14:45
  • 1
    The "AngularJS" tag's description: Use for questions about AngularJS (1.x), the open-source JavaScript framework. Do NOT use this tag for Angular 2 or later versions; instead, use the [angular] tag. Can you please update to remove that tag? Commented Feb 14, 2019 at 3:04

1 Answer 1

1

I was looking for something similar and ran across this: http://devlucky.github.io/kakapo-js

Sign up to request clarification or add additional context in comments.

2 Comments

Not sure why this received a down vote, according to their documentation: "Kakapo its a full featured http mocking library, he allows you to entirely replicate your backend logic in simple and declarative way directly in the browser. This way you can easily prototype and develop the whole Application without backend and just deactivate Kakapo when you go production. In order to achieve that Kakapo gives you a set of utilities like Routing, Database, Response, Request and so on…". Sounds like a possible solution for looking for a "Mirage like" service outside of Ember.
How does this plug into the Angular 2 CLI the way that Mirage does into the Ember CLI?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.