import {Component} from '@angular/core';
import {IonicPage, NavController, NavParams} from 'ionic-angular';
import {Dashboard} from '../dashboard/dashboard'
import {EventPlan} from '../event-plan/event-plan'
import {EmployeeList} from '../../providers/employee-list'
import {GoalActionDashboard} from '../../providers/goal-action-dashboard'
@IonicPage()
@Component({
selector: 'page-service-requirement-form',
templateUrl: 'service-requirement-form.html',
})
export class ServiceRequirementForm {
eventPlan() {
this.navCtrl.setRoot(EventPlan);
}
}
Here I want to go to another page o'clock button. In my html-page, I have a button where I declared a function named eventPlan(). But this is not working. It throws the following error:
No component factory found. Did you add it to @NgModule.entryComponents
How can I fix this error?