I’m following the tutorial from meteor and angular 2 and when I reach the step 11 Running your app on Android or iOS with PhoneGap I can’t make it work on my android device.
This is the output I get from the console.
Error: Uncaught (in promise): Error: Error in ./AppComponent class AppComponent_Host - inline template:0:0 caused by: The selector "app" did not match any elements
This is what I have so far in my app.component.ts file:
import { Component } from '@angular/core';
import template from './app.component.html';
@Component({
selector: 'app',
template
})
export class AppComponent {}
The app works perfectly on the web browser. I think that can be a problem with the router, but I’m not quite sure.
This is the code from the app.routes.ts
import { Route } from '@angular/router';
import { Meteor } from 'meteor/meteor';
import { PartiesListComponent } from '../parties/parties-list.component';
import { PartyDetailsComponent } from '../parties/party-details.component';
export const routes: Route[] = [
{ path: '', component: PartiesListComponent },
{ path: 'party/:partyId', component: PartyDetailsComponent}
];
This is the index.html:
<head>
<base href="/" />
</head>
<body>
<app>Loading...</app>
</body>
And this is the app.component.html
<div>
<router-outlet></router-outlet>
</div>
It is supossed to redirect to the PartiesListComponent but just throw that error and stucks on loading. Thank you.