File tree 2 files changed +29
-7
lines changed
2 files changed +29
-7
lines changed Original file line number Diff line number Diff line change 1
1
< ion-header >
2
2
< ion-navbar color ="primary " text-center >
3
+ < button ion-button menuToggle >
4
+ < ion-icon name ="menu "> </ ion-icon >
5
+ </ button >
3
6
< ion-title >
4
- Ionic 2 Reddit Reader: /r/{{ subreddit || 'all ' }}
7
+ {{ subreddit ? ' /r/' + subreddit : 'Ionic 2 Reddit Reader ' }}
5
8
</ ion-title >
6
9
</ ion-navbar >
7
10
</ ion-header >
8
11
9
- < ion-content padding >
10
12
11
- < ion-item >
12
- < ion-label color ="primary " floating > Go to subreddit</ ion-label >
13
- < ion-input #subredditInput > </ ion-input >
14
- </ ion-item >
15
- < button ion-button (click) ="goToSubreddit(subredditInput.value) " block > Go</ button >
13
+ < ion-menu class ="side-menu " type ="overlay " [content] ="postsList ">
14
+ < ion-header >
15
+ < ion-toolbar color ="primary ">
16
+ < ion-title > Choose subreddit</ ion-title >
17
+ </ ion-toolbar >
18
+ </ ion-header >
19
+
20
+ < ion-content >
21
+ < ion-item >
22
+ < ion-label color ="primary " floating > Go to subreddit</ ion-label >
23
+ < ion-input #subredditInput > </ ion-input >
24
+ </ ion-item >
25
+ < button class ="menu-go-button " ion-button (click) ="goToSubreddit(subredditInput.value) " block > Go</ button >
26
+ </ ion-content >
27
+
28
+ </ ion-menu >
29
+
30
+ < ion-content #postsList padding >
16
31
17
32
< ion-spinner *ngIf ="!loadCompleted " name ="crescent " class ="posts-load-spinner "> </ ion-spinner >
18
33
Original file line number Diff line number Diff line change @@ -41,4 +41,11 @@ page-posts {
41
41
top : 2px ;
42
42
margin-right : 2px ;
43
43
}
44
+
45
+ .side-menu {
46
+ .menu-go-button {
47
+ width : 65% ;
48
+ margin : 5px auto ;
49
+ }
50
+ }
44
51
}
You can’t perform that action at this time.
0 commit comments