Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70747

'Cannot find name XxxPage' Problem

$
0
0

@anespa wrote:

Dear Friends,
I am a newbie in ionic framwork. I try to add a page to existing ‘DreamHome’ sample code with name ‘Payment’. I generate new page through command. I got the error

my file content below: /app/app.component.ts

this.appMenuItems = [
            {title: 'Properties', component: PropertyListPage, icon: 'home'},
            {title: 'Brokers', component: BrokerListPage, icon: 'people'},
            {title: 'Favorites', component: FavoriteListPage, icon: 'star'},
            {title: 'Get Preapproved', component: WelcomePage, icon: 'checkmark-circle'},
            //{title: 'Birth Certificate', component: BirthCertificatePage, icon: 'people'},
            {title: 'Payment', component: PaymentPage, icon: 'people'},
        ];
  1. payment.ts
import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';

/**
 * Generated class for the PaymentPage page.
 *
 * See http://ionicframework.com/docs/components/#navigation for more info
 * on Ionic pages and navigation.
 */
@IonicPage()
@Component({
  selector: 'page-payment',
  templateUrl: 'payment.html',
})
export class PaymentPage {

  constructor(public navCtrl: NavController, public navParams: NavParams) {
  }

  ionViewDidLoad() {
    console.log('ionViewDidLoad PaymentPage');
  }

}

  1. payment.scss
page-payment {

}

  1. payment.html
<!--
  Generated template for the PaymentPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>

  <ion-navbar>
    <ion-title>Payment</ion-title>
  </ion-navbar>

</ion-header>


<ion-content padding>

</ion-content>

Please advise

Thanks

Anes

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70747

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>