-
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
Showing
17 changed files
with
210 additions
and
17 deletions.
There are no files selected for viewing
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
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,17 @@ | ||
import { IonicModule } from '@ionic/angular'; | ||
import { RouterModule } from '@angular/router'; | ||
import { NgModule } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
import { FormsModule } from '@angular/forms'; | ||
import { GoalsPage } from './goals.page'; | ||
|
||
@NgModule({ | ||
imports: [ | ||
IonicModule, | ||
CommonModule, | ||
FormsModule, | ||
RouterModule.forChild([{ path: '', component: GoalsPage }]) | ||
], | ||
declarations: [GoalsPage] | ||
}) | ||
export class GoalsPageModule {} |
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,17 @@ | ||
<ion-header [translucent]="true"> | ||
<ion-toolbar> | ||
<ion-title> | ||
Digital Habits: Goals | ||
</ion-title> | ||
</ion-toolbar> | ||
</ion-header> | ||
|
||
<ion-content [fullscreen]="true"> | ||
<ion-header collapse="condense"> | ||
<ion-toolbar> | ||
<ion-title size="large">Digital Habits: Goals</ion-title> | ||
</ion-toolbar> | ||
</ion-header> | ||
|
||
<p>Nothing added yet. Choose some goals from the 'tips' tab.</p> | ||
</ion-content> |
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,3 @@ | ||
ion-content ion-toolbar { | ||
--background: translucent; | ||
} |
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,24 @@ | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
import { IonicModule } from '@ionic/angular'; | ||
|
||
import { GoalsPage } from './goals.page'; | ||
|
||
describe('GoalsPage', () => { | ||
let component: GoalsPage; | ||
let fixture: ComponentFixture<GoalsPage>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [GoalsPage], | ||
imports: [IonicModule.forRoot()] | ||
}).compileComponents(); | ||
|
||
fixture = TestBed.createComponent(GoalsPage); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
})); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
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,12 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-tab2', | ||
templateUrl: 'goals.page.html', | ||
styleUrls: ['goals.page.scss'] | ||
}) | ||
export class GoalsPage { | ||
|
||
constructor() {} | ||
|
||
} |
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,48 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { RouterModule, Routes } from '@angular/router'; | ||
import { TabsPage } from './tabs.page'; | ||
|
||
const routes: Routes = [ | ||
{ | ||
path: 'tabs', | ||
component: TabsPage, | ||
children: [ | ||
{ | ||
path: 'tips', | ||
children: [ | ||
{ | ||
path: '', | ||
loadChildren: () => | ||
import('../tips/tips.module').then(m => m.TipsPageModule) | ||
} | ||
] | ||
}, | ||
{ | ||
path: 'goals', | ||
children: [ | ||
{ | ||
path: '', | ||
loadChildren: () => | ||
import('../goals/goals.module').then(m => m.GoalsPageModule) | ||
} | ||
] | ||
}, | ||
{ | ||
path: '', | ||
redirectTo: '/tabs/goals', | ||
pathMatch: 'full' | ||
} | ||
] | ||
}, | ||
{ | ||
path: '', | ||
redirectTo: '/tabs/goals', | ||
pathMatch: 'full' | ||
} | ||
]; | ||
|
||
@NgModule({ | ||
imports: [RouterModule.forChild(routes)], | ||
exports: [RouterModule] | ||
}) | ||
export class TabsPageRoutingModule {} |
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,19 @@ | ||
import { IonicModule } from '@ionic/angular'; | ||
import { NgModule } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
import { FormsModule } from '@angular/forms'; | ||
|
||
import { TabsPageRoutingModule } from './tabs-routing.module'; | ||
|
||
import { TabsPage } from './tabs.page'; | ||
|
||
@NgModule({ | ||
imports: [ | ||
IonicModule, | ||
CommonModule, | ||
FormsModule, | ||
TabsPageRoutingModule | ||
], | ||
declarations: [TabsPage] | ||
}) | ||
export class TabsPageModule {} |
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,15 @@ | ||
<ion-tabs> | ||
|
||
<ion-tab-bar slot="bottom"> | ||
<ion-tab-button tab="goals"> | ||
<ion-icon name="locate"></ion-icon> | ||
<ion-label>Goals</ion-label> | ||
</ion-tab-button> | ||
|
||
<ion-tab-button tab="tips"> | ||
<ion-icon name="information"></ion-icon> | ||
<ion-label>Tips</ion-label> | ||
</ion-tab-button> | ||
</ion-tab-bar> | ||
|
||
</ion-tabs> |
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 @@ | ||
|
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,26 @@ | ||
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { TabsPage } from './tabs.page'; | ||
|
||
describe('TabsPage', () => { | ||
let component: TabsPage; | ||
let fixture: ComponentFixture<TabsPage>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [TabsPage], | ||
schemas: [CUSTOM_ELEMENTS_SCHEMA], | ||
}).compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(TabsPage); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
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,12 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-tabs', | ||
templateUrl: 'tabs.page.html', | ||
styleUrls: ['tabs.page.scss'] | ||
}) | ||
export class TabsPage { | ||
|
||
constructor() {} | ||
|
||
} |
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
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
File renamed without changes.
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
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