From cfeb6a5f966adca6ae586cc2e3fddfb112fb324d Mon Sep 17 00:00:00 2001 From: Mark Rajcok Date: Wed, 5 Apr 2017 23:45:31 -0400 Subject: [PATCH] set rootPage to class name, not string Without the above change, the following errors occur when loading a tutorial project: Failed to navigate: undefined ERROR Error: Uncaught (in promise): invalid link: HelloIonicPage --- src/app/app.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 098a56f..cd95e8b 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -16,7 +16,7 @@ export class MyApp { @ViewChild(Nav) nav: Nav; // make HelloIonicPage the root (or first) page - rootPage = 'HelloIonicPage'; + rootPage = HelloIonicPage; pages: Array<{title: string, component: any}>; constructor(