<ion-app></ion-app> is the only template selector for app.component.ts?


#1

Hi, I’m new to Ionic2.

When I start a new Porject, this is the basic code for app.component.ts I get.

app.component.ts
import { Component } from ‘@angular/core’;

    @Component({
      templateUrl: 'app.html'
    })
export class MyApp {}

and this is www/index.html

      <!-- Ionic's root component and where the app will load -->

      <ion-app></ion-app>

      <!-- (...) -->
    </body>

However, if I put my own selector <root-app></root-app> instead of <ion-app></ion-app>?
This is what i get:

I’ve searched the Docs and other Topics for this but found no answer.
If anyone could show me where this is in the Docs, or answer me directly, i would be grateful!

Thanks


#2

That selector seems to be hardcoded in app-root.ts, so I would recommend just sticking with <ion-app>.


#3

That was my doubt!
Thanks!