title: Ionic 2 angular-2-in-memory-web-api 404 error
body: <p>I've been developing a simple app in Ionic 2 and I tried using mock service (in-memory web API) for fetching data as described in this <a href="https://angular.io/docs/ts/latest/tutorial/toh-pt6.html" rel="nofollow noreferrer">Angular 2 tutorial</a>. My console reported this error: </p>
  
  <blockquote>
    <p>TypeScript error: app/app.ts(11,49): Error TS2307: Cannot find module
    'angular2-in-memory-web-api'.</p>
  </blockquote>
  
  <p>I tried this solution: <a href="https://stackoverflow.com/questions/38275364/angular2-in-memory-web-api-404-error">angular2-in-memory-web-api 404 error</a>. After running this: <code>npm i angular2-in-memory-web-api --save</code>, I was unable to find the files where I was supposed to use the code provided in the rest of the solution. </p>
  
  <p>How can I fix this? Sorry if the question is not posed quite right, this is my first one. Please ask if any additional information is needed. The problem is pretty much the same as the one for which the solution was provided in the link above, except that using Ionic 2 makes the given solution inapplicable in my case. I'm don't think SystemJS is being used, please see my file structure image.</p>
  
  <p><a href="https://i.stack.imgur.com/dA8qW.jpg" rel="nofollow noreferrer">Image of my file structure.</a></p>