Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
getme
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
amal
getme
Commits
633a9766
Commit
633a9766
authored
Sep 04, 2019
by
amal
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'amal' into 'master'
Amal See merge request
!12
parents
4eea89d2
b3865663
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
4 deletions
+26
-4
app.component.html
src/app/app.component.html
+4
-1
app.component.ts
src/app/app.component.ts
+10
-2
myorder.page.ts
src/app/myorder/myorder.page.ts
+12
-1
No files found.
src/app/app.component.html
View file @
633a9766
...
...
@@ -17,7 +17,10 @@
<ul>
<li>
Shop
</li>
<li>
About us
</li>
<li>
Catagories
</li>
<ion-menu-toggle>
<li
(
click
)="
vieworder
('
myorder
')"
>
View Order
</li>
</ion-menu-toggle>
<div
class=
"sub_menu"
>
<ul>
<li>
Men's Fashion
</li>
...
...
src/app/app.component.ts
View file @
633a9766
import
{
Component
}
from
'@angular/core'
;
import
{
Router
,
ActivatedRoute
}
from
'@angular/router'
;
import
{
Platform
}
from
'@ionic/angular'
;
import
{
SplashScreen
}
from
'@ionic-native/splash-screen/ngx'
;
import
{
StatusBar
}
from
'@ionic-native/status-bar/ngx'
;
...
...
@@ -13,7 +13,8 @@ export class AppComponent {
constructor
(
private
platform
:
Platform
,
private
splashScreen
:
SplashScreen
,
private
statusBar
:
StatusBar
private
statusBar
:
StatusBar
,
private
router
:
Router
)
{
this
.
initializeApp
();
}
...
...
@@ -25,4 +26,11 @@ export class AppComponent {
this
.
statusBar
.
overlaysWebView
(
false
);
});
}
vieworder
(
path
,
data
=
null
)
{
this
.
router
.
navigateByUrl
(
path
,
{
queryParams
:
data
});
document
.
body
.
scrollTop
=
document
.
documentElement
.
scrollTop
=
0
;
}
}
src/app/myorder/myorder.page.ts
View file @
633a9766
...
...
@@ -2,6 +2,8 @@ import { Component, OnInit } from '@angular/core';
import
{
Location
}
from
'@angular/common'
;
import
{
Router
,
ActivatedRoute
}
from
'@angular/router'
;
import
{
MyordersService
}
from
'./../../config/myorder.service'
;
import
{
ModalController
}
from
'@ionic/angular'
;
import
{
DeliverypopPage
}
from
'../deliverypop/deliverypop.page'
;
@
Component
({
selector
:
'app-myorder'
,
...
...
@@ -14,10 +16,19 @@ export class MyorderPage implements OnInit {
private
router
:
Router
,
private
route
:
ActivatedRoute
,
private
location
:
Location
,
public
myorder
:
MyordersService
public
myorder
:
MyordersService
,
public
modalController
:
ModalController
)
{
}
ngOnInit
()
{
this
.
finishpop
();
}
async
finishpop
()
{
const
modal
=
await
this
.
modalController
.
create
({
component
:
DeliverypopPage
});
return
await
modal
.
present
();
}
goToPage
(
path
,
data
=
null
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment