Skip to content

Commit

Permalink
add schedule component
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmojicatech committed Nov 25, 2023
1 parent ee337a2 commit 3c0b074
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import { Component, Input } from '@angular/core';
import { IonicModule } from '@ionic/angular';

@Component({
selector: 'disney-schedule',
standalone: true,
imports: [IonicModule],
template: `
<ion-card>
<ion-card-header>
<ion-card-title>{{title}}</ion-card-title>
@if (subtitle) {
<ion-card-subtitle>{{subtitle}}</ion-card-subtitle>
}
</ion-card-header>
<ion-card-content>
{{content}}
</ion-card-content>
</ion-card>
`,
styles: ``,
})
export class ScheduleComponent {
@Input({required: true})
title!: string;

@Input({required: true})
content!: string;

@Input()
subtitle?: string;
}
18 changes: 14 additions & 4 deletions apps/disney-planner/src/app/home/home.page.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
import { Component } from '@angular/core';
import { CommonModule } from '@angular/common';
import { IonicModule } from '@ionic/angular';
import { ScheduleComponent } from './components/schedule/schedule.component';

@Component({
selector: 'disney-home',
template: `
<div>Home Page</div>
<ion-header>
<ion-toolbar>
<ion-title>Home</ion-title>
</ion-toolbar>
</ion-header>
<ion-content>
</ion-content>
`,
standalone: true,
imports: [CommonModule],
imports: [IonicModule, ScheduleComponent],
styles: ``
})
export class HomePage {}
export class HomePage {

}

0 comments on commit 3c0b074

Please sign in to comment.