@AKSHAY2110 wrote:
I added a page called polls using the CLI and I randomly keep getting this error when I try to push to this page.
Sometimes this shows up, at other times it works just fine. It feel that ionic is not saving the changes properly cause at times I have to restart ionic serve or hit CTR L + S for the respective page multiple time.Code is as follows:
home1.ts
import { PollsPage } from '../Polls/Polls'; poll(){ this.navCtrl.push('PollsPage'); }
polls.ts
import { Component } from '@angular/core'; import { IonicPage, NavController, NavParams } from 'ionic-angular'; import { AddPollPage } from '../add-poll/add-poll'; @IonicPage() @Component({ selector: 'page-polls', templateUrl: 'polls.html', }) export class PollsPage { constructor(public navCtrl: NavController, public navParams: NavParams) { } ionViewDidLoad() { console.log('ionViewDidLoad PollsPage'); } }
Is there something that I am doing wrong.
Posts: 1
Participants: 1