diff --git a/src/app/login/login.page.ts b/src/app/login/login.page.ts index 34ec813..c4e1357 100644 --- a/src/app/login/login.page.ts +++ b/src/app/login/login.page.ts @@ -10,7 +10,7 @@ import { ToastService } from '../services/toast.service'; }) export class LoginPage implements OnInit { credentials = { - username: 'rakeshsrh', + username: 'geethu', password: '123456789', login_type: 'user' }; diff --git a/src/app/mall-details/mall-details.page.html b/src/app/mall-details/mall-details.page.html index 5a0958a..92964e9 100644 --- a/src/app/mall-details/mall-details.page.html +++ b/src/app/mall-details/mall-details.page.html @@ -12,7 +12,7 @@
{{ mallData.mall.description }}
+{{ mallData.mall.description }}
diff --git a/src/app/outlet-details/outlet-details.page.ts b/src/app/outlet-details/outlet-details.page.ts index 7819a9b..0431f40 100644 --- a/src/app/outlet-details/outlet-details.page.ts +++ b/src/app/outlet-details/outlet-details.page.ts @@ -32,6 +32,18 @@ export class OutletDetailsPage implements OnInit { ngOnInit() { } + shareOutletDetails() { + if (window.navigator && window.navigator['share']) { + const shareData = { + title: JSON.parse(this.route.snapshot.paramMap.get('mallData')).title + ',' + this.outlet_details.outlet_name, + text: this.outlet_details.description, + url: JSON.parse(this.route.snapshot.paramMap.get('mallData')).url + } + + window.navigator['share'](shareData); + } + } + getFormatterDateTime(date: any, format: string) { return moment(date).format(format); }