How to use clearHistory method in fMBT

Best Python code snippet using fMBT_python

controller.js

Source:controller.js Github

copy

Full Screen

...145 historyRoot : true,146 disableAnimate : true,147 });148 $ionicHistory.clearCache();149 $ionicHistory.clearHistory();150 $state.go('Menu.Notifications');151 } else if (index == 1) {152 $ionicHistory.nextViewOptions({153 historyRoot : true,154 disableAnimate : true,155 });156 $ionicHistory.clearCache();157 $ionicHistory.clearHistory();158 $state.go('Menu.OfferZone');159 } else if (index == 2) {160 $ionicHistory.nextViewOptions({161 historyRoot : true,162 disableAnimate : true,163 });164 $ionicHistory.clearCache();165 $ionicHistory.clearHistory();166 $state.go('Menu.RecentlyViewed');167 } else if (index == 3) {168 $ionicHistory.nextViewOptions({169 historyRoot : true,170 disableAnimate : true,171 });172 $ionicHistory.clearCache();173 $ionicHistory.clearHistory();174 $state.go('Menu.ShortList');175 } else if (index == 4) {176 $ionicHistory.nextViewOptions({177 historyRoot : true,178 disableAnimate : true,179 });180 $ionicHistory.clearCache();181 $ionicHistory.clearHistory();182 $state.go('Menu.QuickReorder');183 } else if (index == 5) {184 $ionicHistory.nextViewOptions({185 historyRoot : true,186 disableAnimate : true,187 });188 $ionicHistory.clearCache();189 $ionicHistory.clearHistory();190 $state.go('Menu.BabyClothes');191 } else if (index == 6) {192 $ionicHistory.nextViewOptions({193 historyRoot : true,194 disableAnimate : true,195 });196 $ionicHistory.clearCache();197 $ionicHistory.clearHistory();198 $state.go('Menu.BabyClothes');199 } else if (index == 7) {200 $ionicHistory.nextViewOptions({201 historyRoot : true,202 disableAnimate : true,203 });204 $ionicHistory.clearCache();205 $ionicHistory.clearHistory();206 $state.go('Menu.BabyClothes');207 } else if (index == 8) {208 $ionicHistory.nextViewOptions({209 historyRoot : true,210 disableAnimate : true,211 });212 $ionicHistory.clearCache();213 $ionicHistory.clearHistory();214 $state.go('Menu.BabyClothes');215 } else if (index == 9) {216 $ionicHistory.nextViewOptions({217 historyRoot : true,218 disableAnimate : true,219 });220 $ionicHistory.clearCache();221 $ionicHistory.clearHistory();222 $state.go('Menu.BabyClothes');223 } else if (index == 10) {224 $ionicHistory.nextViewOptions({225 historyRoot : true,226 disableAnimate : true,227 });228 $ionicHistory.clearCache();229 $ionicHistory.clearHistory();230 $state.go('Menu.BabyClothes');231 } else if (index == 11) {232 $ionicHistory.nextViewOptions({233 historyRoot : true,234 disableAnimate : true,235 });236 $ionicHistory.clearCache();237 $ionicHistory.clearHistory();238 $state.go('Menu.BabyClothes');239 } else if (index == 12) {240 $ionicHistory.nextViewOptions({241 historyRoot : true,242 disableAnimate : true,243 });244 $ionicHistory.clearCache();245 $ionicHistory.clearHistory();246 $state.go('Menu.BabyClothes');247 } else if (index == 13) {248 $ionicHistory.nextViewOptions({249 historyRoot : true,250 disableAnimate : true,251 });252 $ionicHistory.clearCache();253 $ionicHistory.clearHistory();254 $state.go('Menu.BabyClothes');255 } else if (index == 14) {256 $ionicHistory.nextViewOptions({257 historyRoot : true,258 disableAnimate : true,259 });260 $ionicHistory.clearCache();261 $ionicHistory.clearHistory();262 $state.go('Menu.BabyClothes');263 } else if (index == 15) {264 $ionicHistory.nextViewOptions({265 historyRoot : true,266 disableAnimate : true,267 });268 $ionicHistory.clearCache();269 $ionicHistory.clearHistory();270 $state.go('Menu.BabyClothes');271 } else if (index == 16) {272 $ionicHistory.nextViewOptions({273 historyRoot : true,274 disableAnimate : true,275 });276 $ionicHistory.clearCache();277 $ionicHistory.clearHistory();278 $state.go('Menu.BabyClothes');279 } else if (index == 17) {280 $ionicHistory.nextViewOptions({281 historyRoot : true,282 disableAnimate : true,283 });284 $ionicHistory.clearCache();285 $ionicHistory.clearHistory();286 $state.go('Menu.BabyClothes');287 } else if (index == 18) {288 $ionicHistory.nextViewOptions({289 historyRoot : true,290 disableAnimate : true,291 });292 $ionicHistory.clearCache();293 $ionicHistory.clearHistory();294 $state.go('Menu.BabyClothes');295 } else if (index == 19) {296 $ionicHistory.nextViewOptions({297 historyRoot : true,298 disableAnimate : true,299 });300 $ionicHistory.clearCache();301 $ionicHistory.clearHistory();302 $state.go('Menu.BabyClothes');303 } else if (index == 20) {304 $ionicHistory.nextViewOptions({305 historyRoot : true,306 disableAnimate : true,307 });308 $ionicHistory.clearCache();309 $ionicHistory.clearHistory();310 $state.go('Menu.BabyClothes');311 } else if (index == 21) {312 $ionicHistory.nextViewOptions({313 historyRoot : true,314 disableAnimate : true,315 });316 $ionicHistory.clearCache();317 $ionicHistory.clearHistory();318 $state.go('Menu.BabyClothes');319 } else if (index == 22) {320 $ionicHistory.nextViewOptions({321 historyRoot : true,322 disableAnimate : true,323 });324 $ionicHistory.clearCache();325 $ionicHistory.clearHistory();326 $state.go('Menu.BabyClothes');327 } else if (index == 23) {328 $ionicHistory.nextViewOptions({329 historyRoot : true,330 disableAnimate : true,331 });332 $ionicHistory.clearCache();333 $ionicHistory.clearHistory();334 $state.go('Menu.BabyClothes');335 } else if (index == 24) {336 $ionicHistory.nextViewOptions({337 historyRoot : true,338 disableAnimate : true,339 });340 $ionicHistory.clearCache();341 $ionicHistory.clearHistory();342 $state.go('Menu.BabyClothes');343 } else if (index == 25) {344 $ionicHistory.nextViewOptions({345 historyRoot : true,346 disableAnimate : true,347 });348 $ionicHistory.clearCache();349 $ionicHistory.clearHistory();350 $state.go('Menu.BabyClothes');351 } else if (index == 26) {352 $ionicHistory.nextViewOptions({353 historyRoot : true,354 disableAnimate : true,355 });356 $ionicHistory.clearCache();357 $ionicHistory.clearHistory();358 $state.go("Menu.Premium", { id: '0' });359 //$state.go('Menu.Premium/1');360 } else if (index == 27) {361 $ionicHistory.nextViewOptions({362 historyRoot : true,363 disableAnimate : true,364 });365 $ionicHistory.clearCache();366 $ionicHistory.clearHistory();367 $state.go("Menu.Premium", { id: '1' });368 //$state.go('Menu.Premium/2');369 } else if (index == 28) {370 $ionicHistory.nextViewOptions({371 historyRoot : true,372 disableAnimate : true,373 });374 $ionicHistory.clearCache();375 $ionicHistory.clearHistory();376 //$state.go('Menu.Premium/3');377 $state.go("Menu.Premium", { id: '2' });378 } else if (index == 29) {379 $ionicHistory.nextViewOptions({380 historyRoot : true,381 disableAnimate : true,382 });383 $ionicHistory.clearCache();384 $ionicHistory.clearHistory();385 $state.go("Menu.Premium", { id: '3' });386 //$state.go('Menu.Premium/4');387 } else if (index == 30) {388 $ionicHistory.nextViewOptions({389 historyRoot : true,390 disableAnimate : true,391 });392 $ionicHistory.clearCache();393 $ionicHistory.clearHistory();394 $state.go("Menu.Premium", { id: '4' });395 //$state.go('Menu.Premium/5');396 } else if (index == 31) {397 $ionicHistory.nextViewOptions({398 historyRoot : true,399 disableAnimate : true,400 });401 $ionicHistory.clearCache();402 $ionicHistory.clearHistory();403 $state.go('Menu.OfferZone');404 } else if (index == 32) {405 $ionicHistory.nextViewOptions({406 historyRoot : true,407 disableAnimate : true,408 });409 $ionicHistory.clearCache();410 $ionicHistory.clearHistory();411 $state.go('');412 } else {413 }414 };415 /*-------------- Menu Links --------------*/416}).controller('DashboardCtlr', function($scope, $rootScope, $state, $ionicPopover, $ionicHistory) {417 418 $scope.demo = 'android';419 $ionicPopover.fromTemplateUrl('templates/popups/more-popover.html', {420 scope : $scope,421 }).then(function(popover) {422 $scope.popover = popover;423 });424 $scope.goToDetails = function() {425 $ionicHistory.nextViewOptions({426 historyRoot : true,427 disableAnimate : true,428 });429 $ionicHistory.clearCache();430 $ionicHistory.clearHistory();431 $state.go('Menu.BabyClothes');432 };433 $scope.goToCartPage = function() {434 $ionicHistory.nextViewOptions({435 historyRoot : true,436 disableAnimate : true,437 });438 $ionicHistory.clearCache();439 $ionicHistory.clearHistory();440 $state.go('Menu.Cart');441 };442}).controller('NotificationsCtlr', function($scope, $rootScope, $state, $ionicHistory, $ionicPopover) {443 $scope.goToDashboard = function() {444 $ionicHistory.nextViewOptions({445 historyRoot : true,446 disableAnimate : true,447 });448 $ionicHistory.clearCache();449 $ionicHistory.clearHistory();450 $state.go('Menu.Dashboard');451 };452 $scope.demo = 'android';453 $ionicPopover.fromTemplateUrl('templates/popups/more-popover.html', {454 scope : $scope,455 }).then(function(popover) {456 $scope.popover = popover;457 });458 $ionicPopover.fromTemplateUrl('templates/popups/socialshare.html', {459 scope : $scope,460 }).then(function(socialshare) {461 $scope.socialshare = socialshare;462 });463 $scope.goToCartPage = function() {464 $ionicHistory.nextViewOptions({465 historyRoot : true,466 disableAnimate : true,467 });468 $ionicHistory.clearCache();469 $ionicHistory.clearHistory();470 $state.go('Menu.Cart');471 };472}).controller('OfferZoneCtlr', function($scope, $rootScope, $state, $ionicHistory, $ionicPopover) {473 $scope.goToDashboard = function() {474 $ionicHistory.nextViewOptions({475 historyRoot : true,476 disableAnimate : true,477 });478 $ionicHistory.clearCache();479 $ionicHistory.clearHistory();480 $state.go('Menu.Dashboard');481 };482 $scope.OffersTab1Class = "tab-item active";483 $scope.OffersTab2Class = "tab-item";484 $scope.OffersTab3Class = "tab-item";485 $scope.template = 'templates/offerzone-pages/offers-todays-deal.html';486 $scope.changeTab = function(index) {487 if (index == 1) {488 $scope.OffersTab1Class = "tab-item active";489 $scope.OffersTab2Class = "tab-item";490 $scope.OffersTab3Class = "tab-item";491 $scope.template = 'templates/offerzone-pages/offers-todays-deal.html';492 } else if (index == 2) {493 $scope.OffersTab1Class = "tab-item";494 $scope.OffersTab2Class = "tab-item active";495 $scope.OffersTab3Class = "tab-item";496 $scope.template = 'templates/offerzone-pages/offers-fashion-corner.html';497 } else {498 $scope.OffersTab1Class = "tab-item";499 $scope.OffersTab2Class = "tab-item";500 $scope.OffersTab3Class = "tab-item active";501 $scope.template = 'templates/offerzone-pages/offers-daily-deals.html';502 }503 };504 $scope.demo = 'android';505 $ionicPopover.fromTemplateUrl('templates/popups/more-popover.html', {506 scope : $scope,507 }).then(function(popover) {508 $scope.popover = popover;509 });510 $ionicPopover.fromTemplateUrl('templates/popups/socialshare.html', {511 scope : $scope,512 }).then(function(socialshare) {513 $scope.socialshare = socialshare;514 });515 $scope.goToCartPage = function() {516 $ionicHistory.nextViewOptions({517 historyRoot : true,518 disableAnimate : true,519 });520 $ionicHistory.clearCache();521 $ionicHistory.clearHistory();522 $state.go('Menu.Cart');523 };524}).controller('RecentlyViewedCtlr', function($scope, $rootScope, $state, $ionicHistory, $ionicPopover) {525 $scope.goToDashboard = function() {526 $ionicHistory.nextViewOptions({527 historyRoot : true,528 disableAnimate : true,529 });530 $ionicHistory.clearCache();531 $ionicHistory.clearHistory();532 $state.go('Menu.Dashboard');533 };534 $scope.demo = 'android';535 $ionicPopover.fromTemplateUrl('templates/popups/more-popover.html', {536 scope : $scope,537 }).then(function(popover) {538 $scope.popover = popover;539 });540 $ionicPopover.fromTemplateUrl('templates/popups/socialshare.html', {541 scope : $scope,542 }).then(function(socialshare) {543 $scope.socialshare = socialshare;544 });545 $scope.goToCartPage = function() {546 $ionicHistory.nextViewOptions({547 historyRoot : true,548 disableAnimate : true,549 });550 $ionicHistory.clearCache();551 $ionicHistory.clearHistory();552 $state.go('Menu.Cart');553 };554}).controller('ShortListCtlr', function($scope, $rootScope, $state, $ionicHistory, $ionicActionSheet, $ionicPopover) {555 $scope.goToDashboard = function() {556 $ionicHistory.nextViewOptions({557 historyRoot : true,558 disableAnimate : true,559 });560 $ionicHistory.clearCache();561 $ionicHistory.clearHistory();562 $state.go('Menu.Dashboard');563 };564 $scope.ShareShortList = function() {565 $ionicActionSheet.show({566 buttons : [{567 text : 'Share'568 }, {569 text : 'Details'570 }],571 cancelText : 'Cancel'572 });573 };574 $scope.demo = 'android';575 $ionicPopover.fromTemplateUrl('templates/popups/more-popover.html', {576 scope : $scope,577 }).then(function(popover) {578 $scope.popover = popover;579 });580 $ionicPopover.fromTemplateUrl('templates/popups/socialshare.html', {581 scope : $scope,582 }).then(function(socialshare) {583 $scope.socialshare = socialshare;584 });585 $scope.goToCartPage = function() {586 $ionicHistory.nextViewOptions({587 historyRoot : true,588 disableAnimate : true,589 });590 $ionicHistory.clearCache();591 $ionicHistory.clearHistory();592 $state.go('Menu.Cart');593 };594}).controller('QuickReorderCtlr', function($scope, $rootScope, $state, $ionicHistory, $ionicPopover) {595 $scope.goToDashboard = function() {596 $ionicHistory.nextViewOptions({597 historyRoot : true,598 disableAnimate : true,599 });600 $ionicHistory.clearCache();601 $ionicHistory.clearHistory();602 $state.go('Menu.Dashboard');603 };604 $scope.demo = 'android';605 $ionicPopover.fromTemplateUrl('templates/popups/more-popover.html', {606 scope : $scope,607 }).then(function(popover) {608 $scope.popover = popover;609 });610 $ionicPopover.fromTemplateUrl('templates/popups/socialshare.html', {611 scope : $scope,612 }).then(function(socialshare) {613 $scope.socialshare = socialshare;614 });615 $scope.goToCartPage = function() {616 $ionicHistory.nextViewOptions({617 historyRoot : true,618 disableAnimate : true,619 });620 $ionicHistory.clearCache();621 $ionicHistory.clearHistory();622 $state.go('Menu.Cart');623 };624}).controller('LoginRegisterCtlr', function($scope, $rootScope, $state, $ionicHistory, $ionicPopover) {625 $scope.goToDashboard = function() {626 $ionicHistory.nextViewOptions({627 historyRoot : true,628 disableAnimate : true,629 });630 $ionicHistory.clearCache();631 $ionicHistory.clearHistory();632 $state.go('Menu.Dashboard');633 };634 $scope.LoginRegisterTab1Class = "tab-item active";635 $scope.LoginRegisterTab2Class = "tab-item";636 $scope.headerValue = 'LOGIN';637 $scope.template = 'templates/login-register/login.html';638 $scope.changeTab = function(index) {639 if (index == 1) {640 $scope.LoginRegisterTab1Class = "tab-item active";641 $scope.LoginRegisterTab2Class = "tab-item";642 $scope.headerValue = 'LOGIN';643 $scope.template = 'templates/login-register/login.html';644 } else if (index == 2) {645 $scope.LoginRegisterTab1Class = "tab-item";646 $scope.LoginRegisterTab2Class = "tab-item active";647 $scope.headerValue = 'REGISTER';648 $scope.template = 'templates/login-register/register.html';649 }650 };651 $scope.demo = 'android';652 $ionicPopover.fromTemplateUrl('templates/popups/more-popover.html', {653 scope : $scope,654 }).then(function(popover) {655 $scope.popover = popover;656 });657 $ionicPopover.fromTemplateUrl('templates/popups/socialshare.html', {658 scope : $scope,659 }).then(function(socialshare) {660 $scope.socialshare = socialshare;661 });662 $scope.goToCartPage = function() {663 $ionicHistory.nextViewOptions({664 historyRoot : true,665 disableAnimate : true,666 });667 $ionicHistory.clearCache();668 $ionicHistory.clearHistory();669 $state.go('Menu.Cart');670 };671}).controller('BabyClothesCtlr', function($scope, $rootScope, $state, $ionicHistory, $ionicPopover) {672 $scope.goToDashboard = function() {673 $ionicHistory.nextViewOptions({674 historyRoot : true,675 disableAnimate : true,676 });677 $ionicHistory.clearCache();678 $ionicHistory.clearHistory();679 $state.go('Menu.Dashboard');680 };681 $scope.demo = 'android';682 $ionicPopover.fromTemplateUrl('templates/popups/more-popover.html', {683 scope : $scope,684 }).then(function(popover) {685 $scope.popover = popover;686 });687 $ionicPopover.fromTemplateUrl('templates/popups/socialshare.html', {688 scope : $scope,689 }).then(function(socialshare) {690 $scope.socialshare = socialshare;691 });692 693 $ionicPopover.fromTemplateUrl('templates/popups/search.html', {694 scope : $scope,695 }).then(function(search) {696 $scope.search = search;697 });698 699 $scope.babyClothes = [];700 $scope.babyClothesCat = [];701 $scope.babyClothesAge = [];702 $scope.babyFootwear = [];703 $scope.babyFootwearCat = [];704 $scope.babyFootwearColor = [];705 /*--------- Baby Clothes ---------*/706 $scope.togglebabyClothes = function(babyClothes) {707 if ($scope.isbabyClothesShown(babyClothes)) {708 $scope.shownbabyClothes = null;709 } else {710 $scope.shownbabyClothes = babyClothes;711 }712 };713 $scope.isbabyClothesShown = function(babyClothes) {714 return $scope.shownbabyClothes === babyClothes;715 };716 /*--------- Baby Clothes ---------*/717 /*--------- Baby Clothes Cat ---------*/718 $scope.toggleBabyClothesCat = function(babyClothesCat) {719 if ($scope.isBabyClothesCategoryShown(babyClothesCat)) {720 $scope.shownBabyCategory = null;721 } else {722 $scope.shownBabyCategory = babyClothesCat;723 }724 };725 $scope.isBabyClothesAgeShown = function(babyClothesCat) {726 return $scope.shownBabyCategory === babyClothesCat;727 };728 /*--------- Baby Clothes Cat ---------*/729 /*--------- Baby Clothes Age ---------*/730 $scope.toggleBabyClothesAge = function(babyClothesAge) {731 if ($scope.isBabyClothesAgeShown(babyClothesAge)) {732 $scope.shownBabyCategory = null;733 } else {734 $scope.shownBabyCategory = babyClothesAge;735 }736 };737 $scope.isBabyClothesCategoryShown = function(babyClothesAge) {738 return $scope.shownBabyCategory === babyClothesAge;739 };740 /*--------- Baby Clothes Age ---------*/741 /*--------- Baby Footwear ---------*/742 $scope.togglebabyFootwear = function(babyFootwear) {743 if ($scope.isbabyFootwearShown(babyFootwear)) {744 $scope.shownbabyClothes = null;745 } else {746 $scope.shownbabyClothes = babyFootwear;747 }748 };749 $scope.isbabyFootwearShown = function(babyFootwear) {750 return $scope.shownbabyClothes === babyFootwear;751 };752 /*--------- Baby Footwear ---------*/753 /*--------- Baby Footwear Cat ---------*/754 $scope.toggleBabyFootwearCat = function(babyFootwearCat) {755 if ($scope.isBabyClothesCategoryShown(babyFootwearCat)) {756 $scope.shownBabyCategory = null;757 } else {758 $scope.shownBabyCategory = babyFootwearCat;759 }760 };761 $scope.isBabyClothesAgeShown = function(babyFootwearCat) {762 return $scope.shownBabyCategory === babyFootwearCat;763 };764 /*--------- Baby Footwear Cat ---------*/765 /*--------- Baby Footwear Color ---------*/766 $scope.toggleBabyFootwearColor = function(babyFootwearColor) {767 if ($scope.isBabyClothesAgeShown(babyFootwearColor)) {768 $scope.shownBabyCategory = null;769 } else {770 $scope.shownBabyCategory = babyFootwearColor;771 }772 };773 $scope.isBabyClothesCategoryShown = function(babyFootwearColor) {774 return $scope.shownBabyCategory === babyFootwearColor;775 };776 /*--------- Baby Footwear Color ---------*/777 $scope.goToCategoryList = function() {778 $ionicHistory.nextViewOptions({779 historyRoot : true,780 disableAnimate : true,781 });782 $ionicHistory.clearCache();783 $ionicHistory.clearHistory();784 $state.go('Menu.ShopByCategory');785 };786 $scope.goToCartPage = function() {787 $ionicHistory.nextViewOptions({788 historyRoot : true,789 disableAnimate : true,790 });791 $ionicHistory.clearCache();792 $ionicHistory.clearHistory();793 $state.go('Menu.Cart');794 };795}).controller('ShopByCategoryCtlr', function($scope, $ionicModal, $rootScope, $ionicPopup, $state, $ionicHistory, $ionicActionSheet, $ionicPopover) {796 $scope.goToDashboard = function() {797 $ionicHistory.nextViewOptions({798 historyRoot : true,799 disableAnimate : true,800 });801 $ionicHistory.clearCache();802 $ionicHistory.clearHistory();803 $state.go('Menu.Dashboard');804 };805 806 807 $scope.demo = 'android';808 $ionicPopover.fromTemplateUrl('templates/popups/more-popover.html', {809 scope : $scope,810 }).then(function(popover) {811 $scope.popover = popover;812 });813 $scope.goToCartPage = function() {814 $ionicHistory.nextViewOptions({815 historyRoot : true,816 disableAnimate : true,817 });818 $ionicHistory.clearCache();819 $ionicHistory.clearHistory();820 $state.go('Menu.Cart');821 };822 823 824 $scope.CategroyTab1Class = "tab-item";825 $scope.CategroyTab2Class = "tab-item";826 $scope.CategroyTab3Class = "tab-item active";827 $scope.CategroyTab4Class = "tab-item";828 $scope.template0 = 'templates/baby-fashion/category-list-two-rows-image.html';829 $scope.template1 = 'templates/baby-fashion/category-list-single-row-with-big-image.html';830 $scope.template2 = 'templates/baby-fashion/category-list-single-row.html';831 832 $scope.template = 'templates/baby-fashion/category-list-two-rows-image.html';833 $scope.templatestatus=0;834 $scope.icon_class='fa fa-list';835 $scope.changeTab = function(index) {836 if (index == 1) {837 $scope.CategroyTab1Class = "tab-item active";838 $scope.CategroyTab2Class = "tab-item";839 $scope.CategroyTab3Class = "tab-item";840 $scope.CategroyTab4Class = "tab-item";841 //$scope.template = 'templates/';842 } else if (index == 2) {843 $scope.CategroyTab1Class = "tab-item";844 $scope.CategroyTab2Class = "tab-item active";845 $scope.CategroyTab3Class = "tab-item";846 $scope.CategroyTab4Class = "tab-item";847 //$scope.template = 'templates/';848 } else if (index == 3) {849 $scope.CategroyTab1Class = "tab-item";850 $scope.CategroyTab2Class = "tab-item";851 $scope.CategroyTab3Class = "tab-item active";852 $scope.CategroyTab4Class = "tab-item";853 //$scope.template = 'templates/baby-fashion/category-list-two-rows-image.html';854 } else {855 $scope.CategroyTab1Class = "tab-item";856 $scope.CategroyTab2Class = "tab-item";857 $scope.CategroyTab3Class = "tab-item";858 $scope.CategroyTab4Class = "tab-item active";859 //$scope.template = 'templates/';860 }861 };862 863 $scope.changeTabview = function() {864 if($scope.templatestatus==0){865 $scope.templatestatus='1';866 $scope.template=$scope.template1;867 }else if($scope.templatestatus==1){868 $scope.templatestatus='2';869 $scope.template=$scope.template2;870 }else{871 $scope.templatestatus='0';872 $scope.template=$scope.template0;873 }874 console.log($scope.templatestatus);875 };876 $ionicPopover.fromTemplateUrl('templates/baby-fashion/socialshare.html', {877 scope : $scope,878 }).then(function(socialsharepop) {879 $scope.socialsharepop = socialsharepop;880 });881 $scope.ShareShortList = function() {882 $scope.socialsharepop.show();883 884 };885 886 $scope.filters=[887 {'name':'Subcategory','tag_class':'FilterActive','icon':'','filters':[{'name':'Clothes & Shoes -'},{'name':'Bath Time(384)'},{'name':'Caps, Gloves & Mittens (680)'},{'name':'Ethnic Wear (1137)'},{'name':'Footwear (384)'},{'name':'Frocks (384)'},{'name':'Inner Wear & Thermals (991)'},{'name':'Nightwear (384)'},{'name':'Onesies & Rompers (384)'},{'name':'Pajamas & Leggings (1140)'},{'name':'Party Wear (2484)'},{'name':'Rain Wear (184)'},{'name':'Set & Suits (1284)'},{'name':'Shirts (584)'},{'name':'Shorts, Skirts & Jeans (1384)'},{'name':'Socks & Tights (384)'}]},888 {'name':'Brands','tag_class':'','icon':'','filters':[{'name':'A.T.U.N'},{'name':'Abracadabra'},{'name':'Acute Angle'},{'name':'Adore'},{'name':'Anthill'},{'name':'AZ Baby'},{'name':'Baby League'},{'name':'Baby Mini'},{'name':'Baby Starters'},{'name':'Babyhug'},{'name':'Bachha Essential'},{'name':'Bee Born'},{'name':'Beebay'},{'name':'Baby Mini'},{'name':'Baby Starters'},{'name':'Babyhug'}],'filter_class':'filter_active'},889 {'name':'Price','tag_class':'','icon':'','filters':[{'name':'Rs 0 to 250'},{'name':'Rs 250 to 500'},{'name':'Rs 500 to 1000'},{'name':'Rs 1000 to 2000'}],'filter_class':'filter_hide'},890 {'name':'Discount','tag_class':'','icon':'','filters':[{'name':'Upto 10%'},{'name':'10%-20%'},{'name':'20%-30%'},{'name':'30%-40%'},{'name':'More than 40%'}],'filter_class':'filter_hide'},891 {'name':'Type','tag_class':'','icon':'','filters':[{'name':'small'},{'name':'large'},{'name':'Medium'},{'name':'Extra large'}]},892 {'name':'Age (5)','tag_class':'','icon':'','filters':[{'name':'0-1'},{'name':'1-2'},{'name':'2-3'},{'name':'3-4'},{'name':'4-5'},{'name':'5-6'},{'name':'6-7'},{'name':'7-8'},{'name':'8-9'},{'name':'9-10'},{'name':'Above 10'}],'filter_class':'filter_hide'},893 {'name':'Collection','tag_class':'','icon':'','filters':[{'name':'Flight Deck by Baby hug'},{'name':'Pokmon by Baby hug'},{'name':'Bleeding Bule by Baby hug'},{'name':'Marasala by Baby hug'}],'filter_class':'filter_hide'},894 {'name':'Color','tag_class':'','icon':'','filters':[{'name':'White'},{'name':'Black'},{'name':'Red'},{'name':'Blue'},{'name':'Orange'},{'name':'pink'},{'name':'Peach'},{'name':'Yellow'},{'name':'Grey'},{'name':'Brown'},{'name':'Maroon'},{'name':'Purple'},{'name':'Beige'},{'name':'Multi colours'}],'filter_class':'filter_hide'},895 {'name':'Material','tag_class':'','icon':'','filters':[{'name':'Acrylic (1)'},{'name':'Cotton (520)'},{'name':'Cotton Mixes or Cotton Poly (14)'},{'name':'Polyester (14)'}],'filter_class':'filter_hide'},896 {'name':'Premium','tag_class':'','icon':'','filters':[{'name':'Show Premium Products (322)'}],'filter_class':'filter_hide'},897 ];898 $ionicModal.fromTemplateUrl('templates/baby-fashion/filter.html', {899 scope : $scope900 }).then(function(modal) {901 $scope.modalFilter = modal;902 });903 904 905 $scope.showfilersdata = function(index) {906 for(var i=0;i<$scope.filters.length;i++){907 if(index!=i){908 $scope.filters[i].tag_class='';909 $scope.filters[i].filter_class='filter_hide';910 }else{911 $scope.filters[i].tag_class='FilterActive';912 $scope.filters[i].filter_class='filter_active';913 }914 }915 };916 917 918 $ionicModal.fromTemplateUrl('templates/baby-fashion/sortby.html', {919 scope : $scope,920 animation: 'slide-in-up'921 }).then(function(sortby) {922 $scope.sortby = sortby;923 });924 $ionicPopover.fromTemplateUrl('templates/popups/socialshare.html', {925 scope : $scope,926 }).then(function(socialshare) {927 $scope.socialshare = socialshare;928 });929 $ionicModal.fromTemplateUrl('templates/baby-fashion/personalize.html', {930 scope : $scope,931 animation: 'slide-in-up'932 }).then(function(personalize) {933 $scope.personalize = personalize;934 });935 $scope.goToDetail = function() {936 $ionicHistory.nextViewOptions({937 historyRoot : true,938 disableAnimate : true,939 });940 $ionicHistory.clearCache();941 $ionicHistory.clearHistory();942 $state.go('Menu.ItemDetail');943 };944 945}).controller('TermandConditionCtrl', function($scope, $rootScope, $state, $ionicHistory, $ionicPopover) {946 $scope.goToDashboard = function() {947 $ionicHistory.nextViewOptions({948 historyRoot : true,949 disableAnimate : true,950 });951 $ionicHistory.clearCache();952 $ionicHistory.clearHistory();953 $state.go('Menu.Dashboard');954 };955 $scope.demo = 'android';956 $ionicPopover.fromTemplateUrl('templates/popups/more-popover.html', {957 scope : $scope,958 }).then(function(popover) {959 $scope.popover = popover;960 });961 $ionicPopover.fromTemplateUrl('templates/popups/socialshare.html', {962 scope : $scope,963 }).then(function(socialshare) {964 $scope.socialshare = socialshare;965 });966 $scope.groups=[{"name":"1. General information"},{"name":"2. Account and Information"},{"name":"3. Pricing, Promotion & Coupon Codes"},{"name":"4. Third Party Offers"},{"name":"5. Transaction & Cancellations"},{"name":"6. User Conduct"},{"name":"7. Is it save to my Credit Card"},{"name":"8. Shop 'n' Earn Loyalty Cash"},{"name":"9. Guaranteed Saving Program"},{"name":"10. Other Terms"}];967$scope.toggleGroup = function(group) {968 if ($scope.isGroupShown(group)) {969 $scope.shownGroup = null;970 } else {971 $scope.shownGroup = group;972 }973 };974 $scope.isGroupShown = function(group) {975 return $scope.shownGroup === group;976 }; 977 $scope.goToCartPage = function() {978 $ionicHistory.nextViewOptions({979 historyRoot : true,980 disableAnimate : true,981 });982 $ionicHistory.clearCache();983 $ionicHistory.clearHistory();984 $state.go('Menu.Cart');985 };986 987}).controller('PrivacypolicyCtrl', function($scope, $rootScope, $state, $ionicHistory, $ionicPopover) {988 $scope.goToDashboard = function() {989 $ionicHistory.nextViewOptions({990 historyRoot : true,991 disableAnimate : true,992 });993 $ionicHistory.clearCache();994 $ionicHistory.clearHistory();995 $state.go('Menu.Dashboard');996 };997 $scope.demo = 'android';998 $ionicPopover.fromTemplateUrl('templates/popups/more-popover.html', {999 scope : $scope,1000 }).then(function(popover) {1001 $scope.popover = popover;1002 });1003 $ionicPopover.fromTemplateUrl('templates/popups/socialshare.html', {1004 scope : $scope,1005 }).then(function(socialshare) {1006 $scope.socialshare = socialshare;1007 });1008 $scope.groups=[{"name":"1. Changes to Privacy Policy"},{"name":"2. Types of information Collected and Usesof Collected information"},{"name":"3. Release of Personally identifiable information"},{"name":"4. Release of Non-Personally identifiable information"},{"name":"5. Updating Information"},{"name":"6. Data tracking"},{"name":"7. Security of information"},{"name":"8. Privacy policy of Third Party Websites"},{"name":"9. Miscellaneous Privacy Issues"},{"name":"10. OPT-OUT of further usage of PERSONAL INFORMATION"},{"name":"11. OPT-OUT of NPII advertising"}];1009$scope.toggleGroup = function(group) {1010 if ($scope.isGroupShown(group)) {1011 $scope.shownGroup = null;1012 } else {1013 $scope.shownGroup = group;1014 }1015 };1016 $scope.isGroupShown = function(group) {1017 return $scope.shownGroup === group;1018 }; 1019 $scope.goToCartPage = function() {1020 $ionicHistory.nextViewOptions({1021 historyRoot : true,1022 disableAnimate : true,1023 });1024 $ionicHistory.clearCache();1025 $ionicHistory.clearHistory();1026 $state.go('Menu.Cart');1027 };1028 1029}).controller('CustomerServicesCtrl', function($scope, $rootScope, $state, $ionicHistory, $ionicPopover) {1030 $scope.goToDashboard = function() {1031 $ionicHistory.nextViewOptions({1032 historyRoot : true,1033 disableAnimate : true,1034 });1035 $ionicHistory.clearCache();1036 $ionicHistory.clearHistory();1037 $state.go('Menu.Dashboard');1038 };1039 $scope.demo = 'android';1040 $ionicPopover.fromTemplateUrl('templates/popups/more-popover.html', {1041 scope : $scope,1042 }).then(function(popover) {1043 $scope.popover = popover;1044 });1045 $ionicPopover.fromTemplateUrl('templates/popups/socialshare.html', {1046 scope : $scope,1047 }).then(function(socialshare) {1048 $scope.socialshare = socialshare;1049 });1050 $scope.goToTermandCondition= function() {1051 $ionicHistory.nextViewOptions({1052 historyRoot : true,1053 disableAnimate : true,1054 });1055 $ionicHistory.clearCache();1056 $ionicHistory.clearHistory();1057 $state.go('Menu.TermandCondition');1058 };1059 $scope.goToPrivacypolicy= function() {1060 $ionicHistory.nextViewOptions({1061 historyRoot : true,1062 disableAnimate : true,1063 });1064 $ionicHistory.clearCache();1065 $ionicHistory.clearHistory();1066 $state.go('Menu.Privacypolicy');1067 };1068 $scope.goToCartPage = function() {1069 $ionicHistory.nextViewOptions({1070 historyRoot : true,1071 disableAnimate : true,1072 });1073 $ionicHistory.clearCache();1074 $ionicHistory.clearHistory();1075 $state.go('Menu.Cart');1076 };1077 1078})1079.controller('TrackingorderCtrl', function($scope, $rootScope, $state, $ionicHistory, $ionicPopover) {1080 $scope.goToDashboard = function() {1081 $ionicHistory.nextViewOptions({1082 historyRoot : true,1083 disableAnimate : true,1084 });1085 $ionicHistory.clearCache();1086 $ionicHistory.clearHistory();1087 $state.go('Menu.Dashboard');1088 };1089 $scope.demo = 'android';1090 $ionicPopover.fromTemplateUrl('templates/popups/more-popover.html', {1091 scope : $scope,1092 }).then(function(popover) {1093 $scope.popover = popover;1094 });1095 1096 $ionicPopover.fromTemplateUrl('templates/popups/socialshare.html', {1097 scope : $scope,1098 }).then(function(socialshare) {1099 $scope.socialshare = socialshare;1100 });1101 $scope.goToCartPage = function() {1102 $ionicHistory.nextViewOptions({1103 historyRoot : true,1104 disableAnimate : true,1105 });1106 $ionicHistory.clearCache();1107 $ionicHistory.clearHistory();1108 $state.go('Menu.Cart');1109 };1110})1111.controller('PremiumCtrl', function($scope, $rootScope, $stateParams, $state, $ionicHistory, $ionicPopover, $timeout, $ionicSlideBoxDelegate) {1112 1113 $scope.id = $stateParams.id;1114 var pageid=$stateParams.id;1115 //slideHasChanged($scope.id);1116 //slideHasChangeds($scope.id);1117 $scope.whichSlide = function(index) {1118 if (index == 0) {1119 } else if (index == 1) {1120 } else if (index == 2) {1121 } else if (index == 3) {1122 } else if (index == 4) {1123 } else if (index == 5) {1124 } else if (index == 6) {1125 } else if (index == 7) {1126 }1127 };1128 1129 $scope.goToDashboard = function() {1130 $ionicHistory.nextViewOptions({1131 historyRoot : true,1132 disableAnimate : true,1133 });1134 $ionicHistory.clearCache();1135 $ionicHistory.clearHistory();1136 $state.go('Menu.Dashboard');1137 };1138 $scope.demo = 'android';1139 $ionicPopover.fromTemplateUrl('templates/popups/more-popover.html', {1140 scope : $scope,1141 }).then(function(popover) {1142 $scope.popover = popover;1143 });1144 1145 $ionicPopover.fromTemplateUrl('templates/popups/socialshare.html', {1146 scope : $scope,1147 }).then(function(socialshare) {1148 $scope.socialshare = socialshare;1149 });1150 1151 1152 $scope.data = {1153 slides : [{1154 'title' : "Today's Boutiques",1155 'template' : 'templates/premium-pages/todays_boutiques.html',1156 }, {1157 'title' : 'Bestsellers',1158 'template' : 'templates/premium-pages/todays_boutiques.html',1159 }, {1160 'title' : 'Last Day',1161 'template' : 'templates/premium-pages/todays_boutiques.html',1162 }, {1163 'title' : 'Premium Brands',1164 'template' : 'templates/premium-pages/premium_brands.html',1165 }, {1166 'title' : 'Shop By Category',1167 'template' : 'templates/premium-pages/todays_boutiques.html',1168 }, {1169 'title' : 'Shop By Age',1170 'template' : 'templates/premium-pages/todays_boutiques.html',1171 }, {1172 'title' : 'Upcoming Boutiques',1173 'template' : 'templates/premium-pages/todays_boutiques.html',1174 }]1175 };1176 $timeout(function() {1177 $ionicSlideBoxDelegate.enableSlide(false);1178 //tabSlideBox.slideHasChanged($scope.id);1179 $ionicSlideBoxDelegate.slide($scope.id);1180 },300);1181 $scope.goToCartPage = function() {1182 $ionicHistory.nextViewOptions({1183 historyRoot : true,1184 disableAnimate : true,1185 });1186 $ionicHistory.clearCache();1187 $ionicHistory.clearHistory();1188 $state.go('Menu.Cart');1189 };1190}).controller('CartPageCtrl', function($scope, $rootScope, $state, $ionicHistory, $ionicPopover) {1191 $scope.goToDashboard = function() {1192 $ionicHistory.nextViewOptions({1193 historyRoot : true,1194 disableAnimate : true,1195 });1196 $ionicHistory.clearCache();1197 $ionicHistory.clearHistory();1198 $state.go('Menu.Dashboard');1199 };1200 1201 $scope.cartItem=6;1202 1203 $scope.CartItemCount= function(amount) {1204 $scope.cartItem=$scope.cartItem+(amount);1205 if($scope.cartItem<=0){1206 $scope.cartItem=0;1207 }1208 };1209 1210 $scope.demo = 'android';1211 $ionicPopover.fromTemplateUrl('templates/popups/more-popover.html', {1212 scope : $scope,1213 }).then(function(popover) {1214 $scope.popover = popover;1215 });1216 1217 $ionicPopover.fromTemplateUrl('templates/popups/socialshare.html', {1218 scope : $scope,1219 }).then(function(socialshare) {1220 $scope.socialshare = socialshare;1221 });1222 $scope.goToDeveleryPage = function() {1223 $ionicHistory.nextViewOptions({1224 historyRoot : true,1225 disableAnimate : true,1226 });1227 $ionicHistory.clearCache();1228 $ionicHistory.clearHistory();1229 $state.go('DeveleryAddress');1230 };1231}).controller('DeveleryAddressCtrl', function($scope, $rootScope, $state, $ionicHistory, $ionicPopover, $ionicModal) {1232 $scope.goToDashboard = function() {1233 $ionicHistory.nextViewOptions({1234 historyRoot : true,1235 disableAnimate : true,1236 });1237 $ionicHistory.clearCache();1238 $ionicHistory.clearHistory();1239 $state.go('Menu.Dashboard');1240 };1241 $scope.demo = 'android';1242 $ionicPopover.fromTemplateUrl('templates/popups/more-popover.html', {1243 scope : $scope,1244 }).then(function(popover) {1245 $scope.popover = popover;1246 });1247 1248 $ionicPopover.fromTemplateUrl('templates/popups/socialshare.html', {1249 scope : $scope,1250 }).then(function(socialshare) {1251 $scope.socialshare = socialshare;1252 });1253 $scope.OffersTab1Class = "tab-item";1254 $scope.OffersTab2Class = "tab-item";1255 $scope.OffersTab3Class = "tab-item active";1256 $scope.OffersTab4Class = "tab-item";1257 $scope.template = 'templates/cart/payment.html';1258 $scope.changeTab = function(index) {1259 if (index == 1) {1260 $scope.OffersTab1Class = "tab-item active";1261 $scope.OffersTab2Class = "tab-item";1262 $scope.OffersTab3Class = "tab-item";1263 $scope.OffersTab4Class = "tab-item";1264 $scope.template = 'templates/';1265 } else if (index == 2) {1266 $scope.OffersTab1Class = "tab-item";1267 $scope.OffersTab2Class = "tab-item active";1268 $scope.OffersTab3Class = "tab-item";1269 $scope.OffersTab4Class = "tab-item";1270 $scope.template = 'templates/cart/delivery-from.html';1271 } else if (index == 3) {1272 $scope.OffersTab1Class = "tab-item";1273 $scope.OffersTab2Class = "tab-item";1274 $scope.OffersTab3Class = "tab-item active";1275 $scope.OffersTab4Class = "tab-item";1276 $scope.template = 'templates/cart/summary.html';1277 } else {1278 $scope.OffersTab1Class = "tab-item";1279 $scope.OffersTab2Class = "tab-item";1280 $scope.OffersTab3Class = "tab-item";1281 $scope.OffersTab4Class = "tab-item active";1282 $scope.template = 'templates/cart/payment.html';1283 } 1284 };1285 $scope.onSummary = function() {1286 $scope.changeTab(3);1287 };1288 1289 $scope.SummaryTab1Class = "tab-item active";1290 $scope.SummaryTab2Class = "tab-item";1291 $scope.SummaryTab3Class = "tab-item ";1292 $scope.SummaryTab = 'templates/cart/apply-coupon.html';1293 $scope.changeTabs = function(index) {1294 if (index == 1) {1295 $scope.SummaryTab1Class = "tab-item active";1296 $scope.SummaryTab2Class = "tab-item";1297 $scope.SummaryTab3Class = "tab-item";1298 $scope.SummaryTab = 'templates/cart/apply-coupon.html';1299 } else if (index == 2) {1300 $scope.SummaryTab1Class = "tab-item";1301 $scope.SummaryTab2Class = "tab-item active";1302 $scope.SummaryTab3Class = "tab-item";1303 $scope.SummaryTab = 'templates/cart/loyalty-cash.html';1304 } else {1305 $scope.SummaryTab1Class = "tab-item";1306 $scope.SummaryTab2Class = "tab-item";1307 $scope.SummaryTab3Class = "tab-item active";1308 $scope.SummaryTab = 'templates/cart/earn-payback.html';1309 } 1310 };1311 1312 $ionicModal.fromTemplateUrl('templates/popups/add-gift-wrap.html', {1313 scope : $scope,1314 animation: 'slide-in-up'1315 }).then(function(addGiftWrap) {1316 $scope.addGiftWrap = addGiftWrap;1317 });1318 1319}).controller('ItemDetailCtrl', function($scope, $rootScope, $state, $ionicHistory, $ionicPopover) {1320 $scope.goToDashboard = function() {1321 $ionicHistory.nextViewOptions({1322 historyRoot : true,1323 disableAnimate : true,1324 });1325 $ionicHistory.clearCache();1326 $ionicHistory.clearHistory();1327 $state.go('Menu.Dashboard');1328 };1329 $scope.demo = 'android';1330 $ionicPopover.fromTemplateUrl('templates/popups/more-popover.html', {1331 scope : $scope,1332 }).then(function(popover) {1333 $scope.popover = popover;1334 });1335 1336 $ionicPopover.fromTemplateUrl('templates/popups/socialshare.html', {1337 scope : $scope,1338 }).then(function(socialshare) {1339 $scope.socialshare = socialshare;1340 });1341 $scope.goToCartPage = function() {1342 $ionicHistory.nextViewOptions({1343 historyRoot : true,1344 disableAnimate : true,1345 });1346 $ionicHistory.clearCache();1347 $ionicHistory.clearHistory();1348 $state.go('Menu.Cart');1349 };1350})1351.controller('MyaccountCtrl', function($scope, $rootScope, $state, $ionicHistory, $ionicPopover) {1352 1353 $scope.goToDashboard = function() {1354 $ionicHistory.nextViewOptions({1355 historyRoot : true,1356 disableAnimate : true,1357 });1358 $ionicHistory.clearCache();1359 $ionicHistory.clearHistory();1360 $state.go('Menu.Dashboard');1361 };1362 $scope.demo = 'android';1363 $ionicPopover.fromTemplateUrl('templates/popups/more-popover.html', {1364 scope : $scope,1365 }).then(function(popover) {1366 $scope.popover = popover;1367 });1368 $ionicPopover.fromTemplateUrl('templates/popups/socialshare.html', {1369 scope : $scope,1370 }).then(function(socialshare) {1371 $scope.socialshare = socialshare;1372 });1373 1374 $scope.toggleGroup = function(group) {1375 if ($scope.isGroupShown(group)) {1376 $scope.shownGroup = null;1377 } else {1378 $scope.shownGroup = group;1379 }1380 };1381 $scope.isGroupShown = function(group) {1382 return $scope.shownGroup === group;1383 }; 1384 $scope.goToCartPage = function() {1385 $ionicHistory.nextViewOptions({1386 historyRoot : true,1387 disableAnimate : true,1388 });1389 $ionicHistory.clearCache();1390 $ionicHistory.clearHistory();1391 $state.go('Menu.Cart');1392 };1393 1394 1395})1396.controller('LoyaltyCashCtrl', function($scope, $rootScope, $state, $ionicHistory, $ionicPopover) {1397 1398 $scope.goToDashboard = function() {1399 $ionicHistory.nextViewOptions({1400 historyRoot : true,1401 disableAnimate : true,1402 });1403 $ionicHistory.clearCache();1404 $ionicHistory.clearHistory();1405 $state.go('Menu.Dashboard');1406 };1407 $scope.demo = 'android';1408 $ionicPopover.fromTemplateUrl('templates/popups/more-popover.html', {1409 scope : $scope,1410 }).then(function(popover) {1411 $scope.popover = popover;1412 });1413 $ionicPopover.fromTemplateUrl('templates/popups/socialshare.html', {1414 scope : $scope,1415 }).then(function(socialshare) {1416 $scope.socialshare = socialshare;1417 });1418 $scope.goToCartPage = function() {1419 $ionicHistory.nextViewOptions({1420 historyRoot : true,1421 disableAnimate : true,1422 });1423 $ionicHistory.clearCache();1424 $ionicHistory.clearHistory();1425 $state.go('Menu.Cart');1426 };1427 1428 1429}).controller('CashRefund', function($scope, $rootScope, $state, $ionicHistory, $ionicPopover) {1430 1431 $scope.goToDashboard = function() {1432 $ionicHistory.nextViewOptions({1433 historyRoot : true,1434 disableAnimate : true,1435 });1436 $ionicHistory.clearCache();1437 $ionicHistory.clearHistory();1438 $state.go('Menu.Dashboard');1439 };1440 $scope.demo = 'android';1441 $ionicPopover.fromTemplateUrl('templates/popups/more-popover.html', {1442 scope : $scope,1443 }).then(function(popover) {1444 $scope.popover = popover;1445 });1446 $ionicPopover.fromTemplateUrl('templates/popups/socialshare.html', {1447 scope : $scope,1448 }).then(function(socialshare) {1449 $scope.socialshare = socialshare;1450 });1451 $scope.goToCartPage = function() {1452 $ionicHistory.nextViewOptions({1453 historyRoot : true,1454 disableAnimate : true,1455 });1456 $ionicHistory.clearCache();1457 $ionicHistory.clearHistory();1458 $state.go('Menu.Cart');1459 };1460 1461 1462}).controller('CashCouponsCtrl', function($scope, $rootScope, $state, $ionicHistory, $ionicPopover) {1463 1464 $scope.goToDashboard = function() {1465 $ionicHistory.nextViewOptions({1466 historyRoot : true,1467 disableAnimate : true,1468 });1469 $ionicHistory.clearCache();1470 $ionicHistory.clearHistory();1471 $state.go('Menu.Dashboard');1472 };1473 $scope.demo = 'android';1474 $ionicPopover.fromTemplateUrl('templates/popups/more-popover.html', {1475 scope : $scope,1476 }).then(function(popover) {1477 $scope.popover = popover;1478 });1479 $ionicPopover.fromTemplateUrl('templates/popups/socialshare.html', {1480 scope : $scope,1481 }).then(function(socialshare) {1482 $scope.socialshare = socialshare;1483 });1484 $scope.goToCartPage = function() {1485 $ionicHistory.nextViewOptions({1486 historyRoot : true,1487 disableAnimate : true,1488 });1489 $ionicHistory.clearCache();1490 $ionicHistory.clearHistory();1491 $state.go('Menu.Cart');1492 };1493 1494 1495})1496.controller('PopoverCtrl', function($scope, $rootScope, $state, $ionicHistory) {1497 1498 $scope.whichSlide = function(index) {1499 if (index == 0) {1500 } else if (index == 1) {1501 } else if (index == 2) {1502 } else if (index == 3) {1503 } else if (index == 4) {1504 } else if (index == 5) {1505 } else if (index == 6) {1506 } else if (index == 7) {1507 }1508 };1509 1510 $scope.goToLoginRegister = function() {1511 $ionicHistory.nextViewOptions({1512 historyRoot : true,1513 disableAnimate : true,1514 });1515 $ionicHistory.clearCache();1516 $ionicHistory.clearHistory();1517 $state.go('Menu.LoginRegister');1518 };1519 $scope.goToTermandCondition= function() {1520 $ionicHistory.nextViewOptions({1521 historyRoot : true,1522 disableAnimate : true,1523 });1524 $ionicHistory.clearCache();1525 $ionicHistory.clearHistory();1526 $state.go('Menu.TermandCondition');1527 };1528 $scope.goToPrivacypolicy= function() {1529 $ionicHistory.nextViewOptions({1530 historyRoot : true,1531 disableAnimate : true,1532 });1533 $ionicHistory.clearCache();1534 $ionicHistory.clearHistory();1535 $state.go('Menu.Privacypolicy');1536 };1537 $scope.goToCustomerServices= function() {1538 $ionicHistory.nextViewOptions({1539 historyRoot : true,1540 disableAnimate : true,1541 });1542 $ionicHistory.clearCache();1543 $ionicHistory.clearHistory();1544 $state.go('Menu.CustomerServices');1545 };1546 $scope.goToNotifications = function() {1547 $ionicHistory.nextViewOptions({1548 historyRoot : true,1549 disableAnimate : true,1550 });1551 $ionicHistory.clearCache();1552 $ionicHistory.clearHistory();1553 $state.go('Menu.Notifications');1554 };1555 $scope.goToTrackingorder = function() {1556 $ionicHistory.nextViewOptions({1557 historyRoot : true,1558 disableAnimate : true,1559 });1560 $ionicHistory.clearCache();1561 $ionicHistory.clearHistory();1562 $state.go('Menu.Trackingorder');1563 };1564 1565 ...

Full Screen

Full Screen

wallet-state.config.js

Source:wallet-state.config.js Github

copy

Full Screen

1(function() {2 "use strict";3 angular.module("blocktrail.wallet")4 .config(walletStateConfig);5 function walletStateConfig($stateProvider) {6 $stateProvider7 /*---Wallet Home---*/8 .state("app.wallet", {9 abstract: true,10 cache: false,11 url: "/wallet",12 controller: "WalletCtrl",13 templateUrl: "js/modules/wallet/controllers/wallet/wallet.tpl.html",14 resolve: {15 showLoadingScreenOnAppWalletResolveStart: showLoadingScreenOnAppWalletResolveStart,16 checkAPIKeyActive: checkAPIKeyActive,17 pinOnOpen: pinOnOpen,18 activeWallet: getActiveWallet,19 loadingData: loadingData20 }21 })22 .state("app.wallet.summary", {23 url: "?refresh",24 cache: false,25 data: {26 clearHistory: true //always clear history when entering this state27 },28 views: {29 "mainView@app.wallet": {30 templateUrl: "js/modules/wallet/controllers/wallet-summary/wallet-summary.tpl.html",31 controller: "WalletSummaryCtrl"32 }33 }34 })35 .state("app.wallet.buybtc", {36 url: "/buy",37 abstract: true,38 template: "<ion-nav-view />"39 })40 .state("app.wallet.buybtc.choose", {41 url: "/choose",42 data: {43 clearHistory: true // always clear history when entering this state44 },45 views: {46 "mainView@app.wallet": {47 templateUrl: "js/modules/wallet/controllers/buy-btc-choose/buy-btc-choose.tpl.html",48 controller: "BuyBTCChooseCtrl"49 }50 }51 })52 .state("app.wallet.buybtc.glidera_oauth2_callback", {53 cache: false,54 url: "/glidera/oaoth2/callback",55 views: {56 "mainView@app.wallet": {57 templateUrl: "js/modules/wallet/controllers/buy-btc-glidera-oauth-callback/buy-btc-glidera-oauth-callback.tpl.html",58 controller: "BuyBTCGlideraOauthCallbackCtrl"59 }60 }61 })62 .state("app.wallet.buybtc.buy", {63 url: "/broker/:broker",64 data: {65 clearHistory: true // always clear history when entering this state66 },67 cache: false,68 views: {69 "mainView@app.wallet": {70 templateUrl: "js/modules/wallet/controllers/buy-btc-broker/buy-btc-broker.tpl.html",71 controller: "BuyBTCBrokerCtrl"72 }73 }74 })75 /*--- Send ---*/76 .state("app.wallet.send", {77 url: "/send",78 cache: false,79 data: {80 clearHistory: true // always clear history when entering this state81 },82 views: {83 "mainView@app.wallet": {84 templateUrl: "js/modules/wallet/controllers/send/send.tpl.html",85 controller: "SendCtrl"86 }87 }88 })89 .state("app.wallet.send.qrcode", {90 url: "/scan?backdrop",91 data: {92 clearHistory: false,93 excludeFromHistory: true //never add this state to the history stack94 },95 views: {96 "overlayView": {97 templateProvider: function($stateParams, $log) {98 $log.debug("set the backdrop", $stateParams);99 if ($stateParams.backdrop) {100 return "<div class='scan-screen'><h1>Loading...</h1></div>";101 } else {102 return "";103 }104 },105 controller: "SendScanQRCtrl"106 }107 }108 })109 .state("app.wallet.send.contacts", {110 url: "/contacts",111 data: {112 clearHistory: false,113 excludeFromHistory: true114 },115 views: {116 "overlayView": {117 templateUrl: "js/modules/wallet/controllers/contact-list/contact-list.tpl.html",118 controller: "ContactsListCtrl"119 }120 }121 })122 .state("app.wallet.send.address", {123 url: "/address-input",124 data: {125 clearHistory: false,126 excludeFromHistory: true127 },128 views: {129 "overlayView": {130 templateUrl: "js/modules/wallet/controllers/send-address-input/send-address-input.tpl.html",131 controller: "SendAddressInputCtrl"132 }133 }134 })135 .state("app.wallet.send.fee-choice", {136 url: "/fee-choice",137 data: {138 clearHistory: false,139 excludeFromHistory: true140 },141 views: {142 "overlayView": {143 templateUrl: "js/modules/wallet/controllers/fee-choice/fee-choice.tpl.html"144 }145 }146 })147 .state("app.wallet.send.confirm", {148 url: "/confirm",149 data: {150 clearHistory: false,151 excludeFromHistory: true152 },153 views: {154 "overlayView": {155 templateUrl: "js/modules/wallet/controllers/send-confirm/send-confirm.tpl.html",156 controller: "SendConfirmCtrl"157 }158 }159 })160 /*--- Receive ---*/161 .state("app.wallet.receive", {162 url: "/receive",163 cache: false,164 data: {165 clearHistory: true // always clear history when entering this state166 },167 views: {168 "mainView@app.wallet": {169 templateUrl: "js/modules/wallet/controllers/receive/receive.tpl.html",170 controller: "ReceiveCtrl"171 }172 }173 })174 /*--- Address lookup ---*/175 .state("app.wallet.receive.address-lookup", {176 url: "/receive/address-lookup",177 cache: false,178 data: {179 clearHistory: true // always clear history when entering this state180 },181 views: {182 "mainView@app.wallet": {183 templateUrl: "js/modules/wallet/controllers/address-lookup/address-lookup.tpl.html",184 controller: "AddressLookupCtrl"185 }186 }187 })188 /*--- Promo Codes ---*/189 .state("app.wallet.promo", {190 url: "/promo?code",191 cache: false,192 data: {193 clearHistory: true // always clear history when entering this state194 },195 views: {196 "mainView@app.wallet": {197 templateUrl: "templates/promo/promo.redeem-code.html",198 controller: "PromoCodeRedeemCtrl"199 }200 }201 })202 /*--- Settings ---*/203 .state("app.wallet.settings", {204 url: "/settings",205 cache: false,206 data: {207 clearHistory: true208 },209 views: {210 "mainView@app.wallet": {211 templateUrl: "js/modules/wallet/controllers/settings/settings.tpl.html",212 controller: "SettingsCtrl"213 }214 }215 })216 .state("app.wallet.settings.profile", {217 url: "/profile",218 data: {219 clearHistory: false220 },221 views: {222 "mainView@app.wallet": {223 templateUrl: "js/modules/wallet/controllers/settings-profile/settings-profile.tpl.html",224 controller: "SettingsProfileCtrl"225 }226 }227 })228 .state("app.wallet.settings.backup", {229 url: "/wallet-backup",230 data: {231 clearHistory: false232 },233 views: {234 "mainView@app.wallet": {235 templateUrl: "js/modules/wallet/controllers/settings-wallet-backup/settings-wallet-backup.tpl.html",236 controller: "SettingsWalletBackupCtrl"237 }238 }239 })240 .state("app.wallet.settings.phone", {241 url: "/phone?goBackTo",242 data: {243 clearHistory: false244 },245 views: {246 "mainView@app.wallet": {247 templateUrl: "js/modules/wallet/controllers/settings-phone/settings-phone.tpl.html",248 controller: "SettingsPhoneCtrl"249 }250 }251 })252 .state("app.wallet.settings.about", {253 url: "/about",254 cache: true,255 data: {256 clearHistory: false257 },258 views: {259 "mainView@app.wallet": {260 templateUrl: "js/modules/wallet/controllers/settings-about/settings-about.tpl.html",261 controller: "SettingsAboutCtrl"262 }263 }264 })265 .state("app.wallet.settings.feedback", {266 url: "/feedback",267 data: {268 clearHistory: false269 },270 views: {271 "mainView@app.wallet": {272 templateUrl: "js/modules/wallet/controllers/settings-feedback/settings-feedback.tpl.html",273 controller: "SettingsFeedbackCtrl"274 }275 }276 });277 }278 function checkAPIKeyActive($state, $q, launchService, modalService, sdkService, Currencies) {279 return launchService.getWalletConfig(true)280 .then(function(result) {281 if (result.api_key && (result.api_key !== 'ok')) {282 // alert user session is invalid283 modalService.alert({284 title: "INVALID_SESSION_LOGOUT_NOW",285 body: "INVALID_SESSION"286 })287 .then(function () {288 $state.go('app.reset');289 });290 // throw error to prevent controller from loading or any other resolves to continue291 return $q.reject(new Error("API_KEY_INVALID"));292 } else {293 // TODO Review checkAPIKeyActive294 if(result.currencies) {295 result.currencies.forEach(function (currency) {296 Currencies.enableCurrency(currency);297 });298 }299 }300 return true;301 })302 .then(sdkSetAccountInfo.bind({}, launchService, sdkService));303 }304 function sdkSetAccountInfo(launchService, sdkService) {305 return launchService.getAccountInfo()306 .then(function(accountInfo) {307 return sdkService.setAccountInfo(accountInfo);308 });309 }310 /**311 *312 * @param $q313 * @param $state314 * @param $rootScope315 */316 function pinOnOpen(localSettingsService, $q, $state, $rootScope, CONFIG) {317 return localSettingsService.getLocalSettings()318 .then(function(localSettings) {319 // if pinOnOpen is required and last time we asked for it was more than 5min ago320 if (localSettings.isPinOnOpen && !$rootScope.STATE.INITIAL_PIN_DONE && (typeof CONFIG.PIN_ON_OPEN === "undefined" || CONFIG.PIN_ON_OPEN === true)) {321 $rootScope.STATE.PENDING_PIN_REQUEST = true;322 $state.go("app.pin", { nextState: $state.$current.name });323 // throw error to prevent controller from loading or any other resolves to continue324 return $q.reject(new Error("PIN_REQUIRED"));325 }326 });327 }328 /**329 * Get the active wallet330 * @param $state331 * @param $q332 * @param launchService333 * @param sdkService334 * @param walletsManagerService335 * @param pinOnOpen not used, just for forcing order of resolves336 */337 function getActiveWallet($state, $q, launchService, sdkService, walletsManagerService, pinOnOpen) {338 return $q.all([launchService.getAccountInfo(), launchService.getWalletInfo()])339 .then(function(data) {340 var accountInfo = data[0];341 var walletInfo = data[1];342 if (!sdkService.getNetworkType() || !walletInfo.identifier) {343 $state.go("app.reset");344 throw new Error("Missing networkType or identifier");345 }346 sdkService.setAccountInfo(accountInfo);347 sdkService.setNetworkType(walletInfo.networkType);348 return walletsManagerService.fetchWalletsList()349 .then(function() {350 var activeWallet = walletsManagerService.getActiveWallet();351 // active wallet is null when we load first time352 if (!activeWallet) {353 activeWallet = walletsManagerService.setActiveWalletByNetworkTypeAndIdentifier(walletInfo.networkType, walletInfo.identifier);354 } else {355 sdkService.setNetworkType(activeWallet.getReadOnlyWalletData().networkType);356 }357 return activeWallet;358 });359 });360 }361 /**362 * Loading data363 * @param settingsService364 * @param $q365 * @param $rootScope366 * @param $log367 * @param Currencies368 * @param activeWallets not used, just for forcing order of resolves369 */370 /**371 * !! activeWallet and handleSetupState should stay in here even when not used372 * !! to make sure the resolves happen in the correct order373 * TODO Review374 */375 function loadingData($q, $rootScope, $log, CONFIG, settingsService, localSettingsService, launchService,376 blocktrailLocalisation, Currencies, activeWallet) {377 // Do an initial load of cached user data378 return $q.all([379 Currencies.updatePrices(true),380 settingsService.initSettings(),381 localSettingsService.initLocalSettings(),382 launchService.getWalletConfig()383 ]).then(function(results) {384 var settings = results[1];385 var walletConfig = results[3];386 // TODO Review the logic with selected language387 var extraLanguages = walletConfig.extraLanguages.concat(CONFIG.EXTRA_LANGUAGES).unique();388 // enable all languages389 extraLanguages.forEach(function(language) {390 blocktrailLocalisation.enableLanguage(language);391 });392 $log.debug("Initial load complete");393 $rootScope.bitcoinPrices = results[0];394 $rootScope.changeLanguage(settings.language);395 return true;396 });397 }398 // Display full loading screen while we initialize the wallet399 function showLoadingScreenOnAppWalletResolveStart($rootScope) {400 $rootScope.hideLoadingScreen = false;401 }...

Full Screen

Full Screen

app-root.js

Source:app-root.js Github

copy

Full Screen

1const app = require("tns-core-modules/application");2const platformModule = require("tns-core-modules/platform");3const frame = require("tns-core-modules/ui/frame");4const observableModule = require("tns-core-modules/data/observable");5const utilsModule = require("tns-core-modules/utils/utils");6const dialogs = require("tns-core-modules/ui/dialogs");7const modalViewModule = "modal-login/modal-login";8const email = require("nativescript-email");9let base64= require('base-64');10let appversion = require("nativescript-appversion");11let utf8 = require('utf8');12const appSettings = require("tns-core-modules/application-settings");13let viewModel;14let page;15function pageLoaded(args) {16 page = args.object;17 viewModel = observableModule.fromObject({});18 page.bindingContext = viewModel;19}20exports.onTapLogin = function(args) {21 let sideDrawer = app.getRootView();22 let user = sideDrawer.getViewById("username").text;23 user = user.trim();24 let pass = sideDrawer.getViewById("password").text;25 sideDrawer.getViewById("password").dismissSoftInput(); //Close keyboard in IOS26 if (user !== "" && pass!== "")27 {28 let token = user + ":" + pass;29 var bytes = utf8.encode(token);30 global.encodedStr = base64.encode(bytes);31 sideDrawer.showModal(modalViewModule, {user:user, pass:pass}, () => {}, false);32 }33 else{34 dialogs.alert({35 title: "Errore!",36 message: "I campi Username e Password non possono essere vuoti!",37 okButtonTexext: "OK"38 });39 }40};41//Go to taxes page42exports.goto_tasse = function () {43 const nav =44 {45 moduleName: "tasse/tasse",46 };47 frame.Frame.topmost().navigate(nav);48};49//Go to Settings page50exports.goto_settings = function () {51 const nav =52 {53 moduleName: "settings/settings",54 };55 frame.Frame.topmost().navigate(nav);56};57exports.goto_about = function () {58 const nav =59 {60 moduleName: "about/about-page",61 };62 frame.Frame.topmost().navigate(nav);63};64exports.contact_us = function () {65 dialogs.confirm({66 title: "Attenzione!",67 message: "La funzione 'Contattaci' permette di contattare il team di sviluppo di app@uniparthenope al fine di comunicare problemi tecnici relativi ad essa.\nPer comunicazioni differenti si prega di rivolgersi alla propria segreteria di competenza\nGrazie.",68 okButtonText: "Contattaci",69 cancelButtonText: "Annulla"70 }).then(function (result){71 if(result){72 appversion.getVersionName().then(function(v) {73 let ver = v;74 let my_device = "DISPOSITIVO UTILIZZATO: \n"+75 platformModule.device.manufacturer + " "+ platformModule.device.os + " "+ platformModule.device.osVersion + "\n"+ platformModule.device.sdkVersion +" \n" +76 platformModule.device.model + " "+ platformModule.device.deviceType + "\n" + platformModule.device.region + " "+ platformModule.device.language;77 let title = "[APP v." + ver +" "+platformModule.device.os+"]" +" [ "+ appSettings.getString("userId","") + " "78 + appSettings.getString("matricola","") + " "79 + appSettings.getString("grpDes","") + " ]";80 console.log(title);81 console.log(my_device);82 email.compose({83 subject: title,84 body: "Scrivi messaggio ...\n\n\n (Non eliminare le seguenti informazioni)\n" + my_device,85 to: ['developer@uniparthenope.it']86 }).then(87 function() {88 console.log("Email closed");89 }, function(err) {90 dialogs.alert({91 title: "Errore: Email",92 message: err.toString(),93 okButtonText: "OK"94 }); });95 });96 }97 });98};99exports.goto_home = function () {100 const nav =101 {102 moduleName: "userCalendar/userCalendar",103 clearHistory: false104 };105 frame.Frame.topmost().navigate(nav);106};107exports.goto_home_public = function () {108 const nav =109 {110 moduleName: "home/home-page",111 clearHistory: false112 };113 frame.Frame.topmost().navigate(nav);114};115exports.goto_libretto = function () {116 const nav =117 {118 moduleName: "Libretto/libretto",119 clearHistory: false120 };121 frame.Frame.topmost().navigate(nav);122};123exports.goto_docenti = function () {124 const nav =125 {126 moduleName: "userDocenti/userDocenti",127 clearHistory: false128 };129 frame.Frame.topmost().navigate(nav);130};131exports.goto_corsi = function () {132 const nav =133 {134 moduleName: "tutticorsi/tutticorsi",135 clearHistory: false136 };137 frame.Frame.topmost().navigate(nav);138};139exports.goto_segreteria = function () {140 const nav =141 {142 moduleName: "segreteria/segreteria",143 clearHistory: false144 };145 frame.Frame.topmost().navigate(nav);146};147exports.goto_menuList = function () {148 const nav =149 {150 moduleName: "ristoratore/ristoratore-home",151 clearHistory: false152 };153 frame.Frame.topmost().navigate(nav);154};155exports.goto_menuNew = function () {156 const nav =157 {158 moduleName: "ristoratore/ristoratore-addmenu",159 clearHistory: false160 };161 frame.Frame.topmost().navigate(nav);162};163exports.goto_adminHome = function () {164 const nav =165 {166 moduleName: "admin/admin-home/admin-home",167 clearHistory: false168 };169 frame.Frame.topmost().navigate(nav);170};171exports.goto_adminAccount = function () {172 const nav =173 {174 moduleName: "admin/allUser/allUser",175 clearHistory: false176 };177 frame.Frame.topmost().navigate(nav);178};179exports.goto_adminNew = function () {180 const nav =181 {182 moduleName: "admin/addUser/addUser",183 clearHistory: false184 };185 frame.Frame.topmost().navigate(nav);186};187exports.goto_appelli = function () {188 const nav =189 {190 moduleName: "userAppelli/appelli",191 clearHistory: false192 };193 frame.Frame.topmost().navigate(nav);194};195exports.goto_badge = function () {196 const nav =197 {198 moduleName: "badge/badge",199 clearHistory: false200 };201 frame.Frame.topmost().navigate(nav);202};203exports.goto_access = function () {204 const nav =205 {206 moduleName: "access/access",207 clearHistory: false208 };209 frame.Frame.topmost().navigate(nav);210};211exports.goto_taxes = function () {212 const nav =213 {214 moduleName: "tasse/tasse",215 clearHistory: false216 };217 frame.Frame.topmost().navigate(nav);218};219exports.goto_professor_home = function () {220 const nav =221 {222 moduleName: "docenti/docenti-home/docenti-home",223 clearHistory: false224 };225 frame.Frame.topmost().navigate(nav);226};227exports.goto_anagrafica = function () {228 const nav =229 {230 moduleName: "anagrafica/anagrafica",231 clearHistory: false232 };233 frame.Frame.topmost().navigate(nav);234 /*235 dialogs.alert({236 title: "Lavori in corso!",237 message: "La seguente sezione non è ancora pronta.\nCi scusiamo per il disagio!",238 okButtonText: "OK"239 });*/240};241exports.goto_docenti_lezioni = function () {242 const nav =243 {244 moduleName: "docenti/docenti-lezioni/docenti-lezioni",245 clearHistory: false246 };247 frame.Frame.topmost().navigate(nav);248};249exports.ontap_account = function(){250 utilsModule.openUrl("https://uniparthenope.esse3.cineca.it/Anagrafica/PasswordDimenticata.do");251};...

Full Screen

Full Screen

navControls.js

Source:navControls.js Github

copy

Full Screen

1import routes from "../routes";2// import {3// topmost4// } from "ui/frame";5import { Frame } from "@nativescript/core";6export function navigatingTo() {7 if (Frame.topmost().ios) {8 var navigationBar = Frame.topmost().ios.controller.navigationBar;9 navigationBar.translucent = false;10 }11}12export default {13 data() {14 return {15 gesturesEnabled: true16 };17 },18 computed: {19 drawerElement() {20 return (this.$refs && this.$refs.drawer) || null;21 },22 drawer: {23 get() {24 return this.$store.getters.sideDrawer;25 },26 set(v) {27 return this.$store.commit("setSideDrawer", v);28 }29 }30 },31 watch: {32 drawer(v) {33 if (this.drawerElement) {34 return v ?35 this.drawerElement.nativeView.showDrawer() :36 this.drawerElement.nativeView.closeDrawer();37 }38 }39 },40 methods: {41 showDrawer() {42 this.drawer = true;43 },44 closeDrawer() {45 this.drawer = false;46 },47 onNavigationButtonTap() {48 this.drawer = false;49 },50 onOpenDrawerTap() {51 this.drawer = true;52 },53 onCloseDrawerTap() {54 this.drawer = false;55 },56 onToggleDrawerTap() {57 this.drawer = !this.drawer;58 },59 onDrawerClosed() {60 this.drawer = false;61 },62 navigateToBuddies() {63 this.$navigateTo(routes.buddies, {64 frame: "mainContent",65 clearHistory: true66 });67 this.drawer = false;68 },69 navigateToDashboard() {70 this.$navigateTo(routes.dashboard, {71 frame: "mainContent",72 clearHistory: true73 });74 this.drawer = false;75 },76 navigateToExercises() {77 this.$navigateTo(routes.exercises, {78 frame: "mainContent",79 clearHistory: true80 });81 this.drawer = false;82 },83 navigateToLogin() {84 this.$navigateTo(routes.login, {85 frame: "mainContent",86 clearHistory: true87 });88 this.drawer = false;89 },90 navigateToProfile() {91 this.$navigateTo(routes.profile, {92 frame: "mainContent",93 clearHistory: false94 });95 this.drawer = false;96 },97 navigateToRecordWorkout() {98 this.$navigateTo(routes.recordWorkout, {99 frame: "mainContent",100 clearHistory: true101 });102 this.drawer = false;103 },104 navigateToRecWorkoutNavFrame(payload) {105 this.$navigateTo(routes.recWorkoutNavFrame, {106 props: {107 workoutPlan: payload,108 },109 frame: "mainContent",110 clearHistory: true111 });112 this.drawer = false;113 },114 navigateToWorkoutPreview(payload) {115 this.$navigateTo(routes.recWorkoutPreview, {116 props: {117 workoutPlan: payload,118 },119 frame: "mainContent",120 clearHistory: false121 });122 this.drawer = false;123 },124 navigateToWorkoutBuilder() {125 this.$navigateTo(routes.workoutBuilder, {126 frame: "mainContent",127 clearHistory: true128 });129 this.drawer = false;130 },131 navigateToSettings() {132 this.$navigateTo(routes.settings, {133 frame: "mainContent",134 clearHistory: true135 });136 this.drawer = false;137 },138 navigateToWorkouts() {139 this.$navigateTo(routes.workouts, {140 frame: "mainContent",141 clearHistory: true142 });143 this.drawer = false;144 },145 navigateToExerciseBrowser() {146 this.$navigateTo(routes.wbExerciseBrowser, {147 frame: "mainContent",148 clearHistory: false149 });150 this.drawer = false;151 }152 }...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run fMBT automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful