Property 'loading' does not exist on type 'SignupPage' (TypeScript)
<p>Hello nice fellows from stackoverflow!</p>

<p>I'm new to MEAN stack, and still trying to get into the basics of it.</p>

<p>I'm trying to make a simple authentication. This is the code:</p>

<pre><code>import { Component } from '@angular/core';
import { NavController, LoadingController } from 'ionic-angular';
import { Auth } from '../../providers/auth';
import { HomePage } from '../home/home';

@Component({
  selector: 'signup-page',
  templateUrl: 'signup-page.html'
})
export class SignupPage {

  role: string;
  email: string;
  password: string;

  constructor(public navCtrl: NavController, public authService: Auth, public loadingCtrl: LoadingController) {

  }

  register(){

    this.showLoader();

    let details = {
        email: this.email,
        password: this.password,
        role: this.role
    };

    this.authService.createAccount(details).then((result) =&gt; {
      this.loading.dismiss();
      console.log(result);
      this.navCtrl.setRoot(HomePage);
    }, (err) =&gt; {
        this.loading.dismiss();
    });

  }

  showLoader(){

    this.loading = this.loadingCtrl.create({
      content: 'Authenticating...'
    });

    this.loading.present();

  }

}
</code></pre>

<p>And this is the error i get:</p>

<pre><code>[12:43:17]  typescript: src/pages/signup-page/signup-page.ts, line: 31 
            Property 'loading' does not exist on type 'SignupPage'. 

      L30:  this.authService.createAccount(details).then((result) =&gt; {
      L31:    this.loading.dismiss();
      L32:    console.log(result);

[12:43:17]  typescript: src/pages/signup-page/signup-page.ts, line: 35 
            Property 'loading' does not exist on type 'SignupPage'. 

      L34:  }, (err) =&gt; {
      L35:      this.loading.dismiss();
      L36:  });

[12:43:17]  typescript: src/pages/signup-page/signup-page.ts, line: 42 
            Property 'loading' does not exist on type 'SignupPage'. 

      L42:  this.loading = this.loadingCtrl.create({
      L43:    content: 'Authenticating...'

[12:43:17]  typescript: src/pages/signup-page/signup-page.ts, line: 46 
            Property 'loading' does not exist on type 'SignupPage'. 

      L46:  this.loading.present();

[12:43:17]  transpile failed 
</code></pre>

<p>Anyone can clarify me what i'm missing and what should i study to proceed with my project?</p>