Skip to content

Commit f8eef55

Browse files
committed
feat(module): Add Shared Module
1 parent 99ed2ed commit f8eef55

File tree

10 files changed

+40
-15
lines changed

10 files changed

+40
-15
lines changed

src/app/app.imports.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ export const Providers = [
9999
export const Components = [
100100
FlashCardComponent,
101101
TimerProgress,
102+
Timer,
102103
ExpandableHeader
103104
]
104105

src/app/app.module.ts

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { SharedModule } from './shared.module';
12
import {
23
IonicOfficialComponentsPageModule
34
} from '../pages/ionic-official-components/ionic-official-components.module';
@@ -21,23 +22,14 @@ import { Modules, Pages, Directives, Pipes, Providers, Components } from './app.
2122
// App Core
2223
MyApp,
2324
Pages,
24-
Components,
25-
Directives,
26-
Pipes
25+
// Components,
26+
// Directives,
27+
// Pipes
2728
],
2829
imports: [
2930
Modules,
3031
IonicModule.forRoot(MyApp),
31-
BarcodeScannerPageModule,
32-
LoginListPageModule,
33-
ListsPageModule,
34-
ProfileListPageModule,
35-
MiscellaneousListPageModule,
36-
PopupMenuListPageModule,
37-
PopupModalPageModule,
38-
ThemingPageModule,
39-
SideMenuPageModule,
40-
IonicOfficialComponentsPageModule,
32+
SharedModule,
4133
],
4234
bootstrap: [IonicApp],
4335
entryComponents: [

src/app/shared.module.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import { Components, Directives, Pipes } from './app.imports';
2+
import { NgModule } from '@angular/core';
3+
import { IonicModule } from 'ionic-angular';
4+
5+
@NgModule({
6+
declarations: [
7+
Pipes,
8+
Directives,
9+
Components
10+
],
11+
imports: [
12+
IonicModule,
13+
],
14+
exports: [
15+
Pipes,
16+
Components
17+
]
18+
})
19+
20+
export class SharedModule { }

src/pages/miscellaneous/chat/chats.module.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { SharedModule } from '../../../app/shared.module';
12
import { ChatsPage } from './chats';
23
import { NgModule } from '@angular/core';
34
import { IonicPageModule } from 'ionic-angular';
@@ -8,6 +9,7 @@ import { IonicPageModule } from 'ionic-angular';
89
],
910
imports: [
1011
IonicPageModule.forChild(ChatsPage),
12+
SharedModule
1113
],
1214
exports: [
1315
ChatsPage

src/pages/miscellaneous/chat/chats.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class ChatsPage {
3232
}
3333

3434
viewMessages(chat) {
35-
this.navCtrl.push(MessagesPage, { chatId: chat.id });
35+
this.navCtrl.push('MessagesPage', { chatId: chat.id });
3636
}
3737

3838
/*

src/pages/miscellaneous/countdown/countdown.module.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { SharedModule } from '../../../app/shared.module';
12
import { CountdownPage } from './countdown';
23
import { NgModule } from '@angular/core';
34
import { IonicPageModule } from 'ionic-angular';
@@ -8,6 +9,7 @@ import { IonicPageModule } from 'ionic-angular';
89
],
910
imports: [
1011
IonicPageModule.forChild(CountdownPage),
12+
SharedModule,
1113
],
1214
exports: [
1315
CountdownPage

src/pages/miscellaneous/expandable-header/expandable-header.module.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { SharedModule } from '../../../app/shared.module';
12
import { ExpandableHeaderPage } from './expandable-header';
23
import { NgModule } from '@angular/core';
34
import { IonicPageModule } from 'ionic-angular';
@@ -8,6 +9,7 @@ import { IonicPageModule } from 'ionic-angular';
89
],
910
imports: [
1011
IonicPageModule.forChild(ExpandableHeaderPage),
12+
SharedModule,
1113
],
1214
exports: [
1315
ExpandableHeaderPage

src/pages/miscellaneous/flash-card/flash-card.module.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { SharedModule } from '../../../app/shared.module';
12
import { FlashCardPage } from './flash-card';
23
import { NgModule } from '@angular/core';
34
import { IonicPageModule } from 'ionic-angular';
@@ -8,6 +9,7 @@ import { IonicPageModule } from 'ionic-angular';
89
],
910
imports: [
1011
IonicPageModule.forChild(FlashCardPage),
12+
SharedModule,
1113
],
1214
exports: [
1315
FlashCardPage

src/pages/miscellaneous/tinder-cards/tinder-cards.module.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
import { SharedModule } from '../../../app/shared.module';
12
import { TinderCardsPage } from './tinder-cards';
3+
import { SwingModule } from 'angular2-swing';
24
import { NgModule } from '@angular/core';
35
import { IonicPageModule } from 'ionic-angular';
46

@@ -8,6 +10,8 @@ import { IonicPageModule } from 'ionic-angular';
810
],
911
imports: [
1012
IonicPageModule.forChild(TinderCardsPage),
13+
SwingModule,
14+
SharedModule
1115
],
1216
exports: [
1317
TinderCardsPage

src/pages/miscellaneous/tinder-cards/tinder-cards.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ page-tinder-cards {
2323
height: 15%;
2424
}
2525
.tinder-footer {
26-
width: 50%;
26+
width: 55%;
2727
margin: auto;
2828
padding-top: 6px;
2929
}

0 commit comments

Comments
 (0)