Angular-Wordpress-Theme icon indicating copy to clipboard operation
Angular-Wordpress-Theme copied to clipboard

Creating a new view have to click twice to show view

Open zepzia opened this issue 7 years ago • 0 comments

When I create a new view/state (magazine) I'm having to click the menu item twice to show that state. First click shows a blank screen. Any idea why this is happening? Also, thank you for this theme!!

.config(function($stateProvider,$urlRouterProvider,$locationProvider){ $locationProvider.html5Mode({ enabled: true, requireBase: false }); $urlRouterProvider.otherwise('/'); $stateProvider .state('list',{ url:'/', controller:'listView', templateUrl:ajaxInfo.template_directory+'list.html' }) .state('magazine',{ url:'/:magazine', controller:'magazineView', templateUrl:ajaxInfo.template_directory+'magazine.html' }) .state('single',{ url:'/:slug', controller:'singleView', templateUrl:ajaxInfo.template_directory+'single.html' }) })

zepzia avatar Jun 11 '17 02:06 zepzia