title: Ionic 3 httpClient for Http Module
body: <p>I'm following this <a href="https://www.joshmorony.com/create-a-data-driven-quiz-app-in-ionic-2-part-2/" rel="nofollow noreferrer">Tutorial</a> for my Ionic app. This using <strong>http</strong> Module.But now angular 4+ has <strong>httpClient</strong>. I have done some changes according to that. Now app is working fine until I start. When I restart the app it shows the error</p>
  
  <p><em>Property 'questions' does not exist on type 'Object'.</em></p>
  
  <p>but again when I hit ctrl+s and save changes error is disappeared. How can I fix this??</p>
  
  <p>Json is</p>
  
  <pre><code> {
      "questions": [
  
          {
              "flashCardFront": "&lt;img src='assets/imgs/helicopter.png' /&gt;",
              "flashCardBack": "Helicopter",
              "flashCardFlipped": false,
              "questionText": "What is this?",
              "answers": [
                  {"answer": "Helicopter", "correct": true, "selected": false},
                  {"answer": "Plane", "correct": false, "selected": false},
                  {"answer": "Truck", "correct": false, "selected": false}
              ]
          },
          {
              "flashCardFront": "&lt;img src='assets/imgs/plane.png' /&gt;",
              "flashCardBack": "Plane",
              "flashCardFlipped": false,
              "questionText": "What is this?",
              "answers": [
                  {"answer": "Helicopter", "correct": false, "selected": false},
                  {"answer": "Plane", "correct": true, "selected": false},
                  {"answer": "Truck", "correct": false, "selected": false}
              ]
          },
          {
              "flashCardFront": "&lt;img src='assets/imgs/truck.png' /&gt;",
              "flashCardBack": "Truck",
              "flashCardFlipped": false,
              "questionText": "What is this?",
              "answers": [
                  {"answer": "Helicopter", "correct": false, "selected": false},
                  {"answer": "Plane", "correct": false, "selected": false},
                  {"answer": "Truck", "correct": true, "selected": false}
              ]
          }
      ]
  }
  </code></pre>
  
  <p>Here is my code in provider using <strong>httpClient</strong></p>
  
  <pre><code>load() {
      if(this.data) {
          return Promise.resolve(this.data);
      }
  
      return new Promise(resolve =&gt; {
          this.http.get('assets/data/questions.json').subscribe(data =&gt; {
              this.data = data.questions; //error here
              resolve(this.data);
          });
      });
   }
  </code></pre>