-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ee337a2
commit 3c0b074
Showing
2 changed files
with
46 additions
and
4 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
apps/disney-planner/src/app/home/components/schedule/schedule.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { | ||
|
||
} |