-
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.
Merge pull request #121 from uatisdeproblem/110-refactor-app-routing-…
…navigation 110 refactor app routing navigation
- Loading branch information
Showing
11 changed files
with
122 additions
and
8 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
import { IonicModule } from '@ionic/angular'; | ||
import { FormsModule } from '@angular/forms'; | ||
import { IDEATranslationsModule } from '@idea-ionic/common'; | ||
|
||
import { MenuRoutingModule } from './menu.routing.module'; | ||
import { MenuPage } from './menu.page'; | ||
|
||
|
||
@NgModule({ | ||
imports: [ | ||
CommonModule, | ||
FormsModule, | ||
IonicModule, | ||
IDEATranslationsModule, | ||
MenuRoutingModule | ||
], | ||
declarations: [MenuPage] | ||
}) | ||
export class MenuModule {} |
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,30 @@ | ||
<ion-header> | ||
<ion-toolbar *ngIf="app.isInMobileMode()" color="ideaToolbar"> | ||
<ion-title class="ion-text-center"> | ||
{{ 'TABS.MENU' | translate }} | ||
</ion-title> | ||
</ion-toolbar> | ||
</ion-header> | ||
<ion-content> | ||
<ion-list lines="inset" style="padding: 0; max-width: 500px; margin: 0 auto;"> | ||
<ion-item-divider> | ||
<ion-label>{{ 'MENU.PAGES' | translate }}</ion-label> | ||
</ion-item-divider> | ||
<ion-item button color="white" (click)="app.goToInTabs(['home'])"> | ||
<ion-icon name="home" slot="start"></ion-icon> | ||
<ion-label>{{ 'MENU.HOME' | translate }}</ion-label> | ||
</ion-item> | ||
<ion-item button color="white" (click)="app.goToInTabs(['sessions'])"> | ||
<ion-icon name="calendar" slot="start"></ion-icon> | ||
<ion-label>{{ 'MENU.AGENDA' | translate }}</ion-label> | ||
</ion-item> | ||
<ion-item button color="white" (click)="app.goToInTabs(['venues'])"> | ||
<ion-icon name="map" slot="start"></ion-icon> | ||
<ion-label>{{ 'MENU.VENUES' | translate }}</ion-label> | ||
</ion-item> | ||
<ion-item button color="white" (click)="app.goToInTabs(['organizations'])"> | ||
<ion-icon name="business" slot="start"></ion-icon> | ||
<ion-label>{{ 'MENU.ORGANIZATIONS' | translate }}</ion-label> | ||
</ion-item> | ||
</ion-list> | ||
</ion-content> |
Empty file.
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'; | ||
|
||
import { AppService } from 'src/app/app.service'; | ||
|
||
@Component({ | ||
selector: 'app-menu', | ||
templateUrl: './menu.page.html', | ||
styleUrls: ['./menu.page.scss'] | ||
}) | ||
export class MenuPage { | ||
constructor(public app: AppService) {} | ||
} |
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,14 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { Routes, RouterModule } from '@angular/router'; | ||
|
||
import { MenuPage } from './menu.page'; | ||
|
||
const routes: Routes = [ | ||
{ path: '', component: MenuPage } | ||
]; | ||
|
||
@NgModule({ | ||
imports: [RouterModule.forChild(routes)], | ||
exports: [RouterModule] | ||
}) | ||
export class MenuRoutingModule {} |
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
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
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