1) You can do it “automatically”
ionic generate page users
2) Modify app.module.ts and add your page to declarations and entryComponents don’t forget to add the import.
3) Link from another existing page, don’t forget to include the import here as well.
Manual way
0) Create a folder (if needed)
1) Create a file <custom_page>.ts
import { Component } from '@angular/core';
@Component({
selector: 'page-custom',
templateUrl: 'custom.html';
})
export class CustomPage {
}
2) Create a <custom>.html
<ion-header>
<ion-navbar>
<ion-title>My title</ion-title>
</ion-navbar>
</ion-header>
<ion-content>
</ion-content>
2) Modify app.module.ts and add your page to declarations and entryComponents don’t forget to add the import.
4) Link from another existing page, don’t forget to include the import here as well.
No hay comentarios:
Publicar un comentario