cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [cordova-plugin-wkwebview-engine] BraydenGirard edited a comment on issue #143: Blank screen after using plugin-wkwebview-engine
Date Wed, 22 Apr 2020 14:00:48 GMT

BraydenGirard edited a comment on issue #143:
URL: https://github.com/apache/cordova-plugin-wkwebview-engine/issues/143#issuecomment-617796403


   This app was written in AngularJS. Below is the code that is being used to load the views.
Any suggestions how I would implement either @breautek  or @elmartino  solutions with this
code? From the examples that I have seen I was not able to see how these solutions could be
applied. May just be me not knowing the details of this area. I appreciate the support, thank
you very much.
   
   ```
   $stateProvider
               .state('dashboard', {
                   url: "/dashboard",
                   resolve: {
                       xmlFirstLoad: xmlFirstResolve,
                       loadStatus: loadStatus
                   },
                   templateUrl: "app/views/dashboards/dashboard.html",
                   controller: function ($rootScope) {
                       $rootScope.isHomePage = true;
                   }
               })
               .state('calendar', {
                   url: "/calendar",
                   resolve: {
                       xmlFirstLoad: xmlFirstResolve,
                       loadStatus: loadStatus
                   },
                   templateUrl: "app/views/pages/calendar.view.template.html",
                   controller: function ($rootScope) {
                       $rootScope.isHomePage = true;
                   }
               })
               .state('admin', {
                   url: "/admin",
                   resolve: {
                       xmlFirstLoad: xmlFirstResolve,
                       loadStatus: loadStatus
                   },
                   templateUrl: "app/views/pages/admin.view.template.html",
                   controller: function ($rootScope) {
                       $rootScope.isHomePage = true;
                   }
               }).state('assessment', {
                   url: "/assessment",
                   resolve: {
                       xmlFirstLoad: xmlFirstResolve,
                       loadStatus: loadStatus
                   },
                   templateUrl: "app/views/pages/assessment.view.template.html",
                   controller: function ($rootScope) {
                       $rootScope.isHomePage = true;
                   }
               })
               .state('todayworkout', {
                   url: "/todayworkout",
                   resolve: {
                       xmlFirstLoad: xmlFirstResolve,
                       loadStatus: loadStatus
                   },
                   templateUrl: "app/views/pages/todayWorkout.view.template.html",
                   controller: function ($rootScope) {
                       $rootScope.isHomePage = true;
                   }
               })
               .state('create', {
                   url: "/create",
                   resolve: {
                       xmlFirstLoad: xmlFirstResolve,
                       loadStatus: loadStatus
                   },
                   templateUrl: "app/views/pages/create.view.template.html",
                   controller: function ($rootScope) {
                       $rootScope.isHomePage = true;
                   }
               })
               .state('wait', {
                   url: "/wait",
                   resolve: {
                       xmlFirstLoad: xmlFirstResolve,
                       loadStatus: loadStatus
                   },
                   templateUrl: "app/views/pages/wait.view.template.html",
                   controller: function ($rootScope) {
                       $rootScope.isHomePage = true;
                       $rootScope.hideMenu = true;
                   }
               })
               .state('profile', {
                   url: "/profile",
                   resolve: {
                       xmlFirstLoad: xmlFirstResolve,
                       loadStatus: loadStatus
                   },
                   templateUrl: "app/views/pages/profile.view.template.html",
                   controller: function ($rootScope) {
                       $rootScope.isHomePage = true;
                   }
               })
               .state('tasks', {
                   url: "/tasks",
                   resolve: {
                       xmlFirstLoad: xmlFirstResolve,
                       loadStatus: loadStatus
                   },
                   templateUrl: "app/views/tasks/tasks.html"
               })
               .state("login", {
                   url: "/login",
                   resolve: {
                       xmlFirstLoad: xmlFirstResolve
                   },
                   templateUrl: "app/views/pages/login.view.template.html",
                   controller: function ($rootScope) {
                       $rootScope.isHomePage = false;
                   }
               }).
           state("reset", {
                   url: "/reset/:resetToken",
                   resolve: {
                       xmlFirstLoad: xmlFirstResolve
                   },
                   templateUrl: "app/views/pages/login.view.template.html",
                   controller: function ($rootScope) {
                       $rootScope.isHomePage = false;
                   }
               })
               .state("register", {
                   url: "/register?plan&title&value",
                   resolve: {
                       xmlFirstLoad: xmlFirstResolve
                   },
                   templateUrl: "app/views/pages/register.view.template.html",
                   controller: function ($rootScope) {
                       $rootScope.isHomePage = false;
                   }
               })
               .state("information", {
                   url: "/information",
                   resolve: {
                       xmlFirstLoad: xmlFirstResolve
                   },
                   templateUrl: "app/views/pages/information.view.template.html",
                   controller: function ($rootScope) {
                       $rootScope.isHomePage = false;
                   }
               });
       })```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message