Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating a new view have to click twice to show view #27

Open
zepzia opened this issue Jun 11, 2017 · 0 comments
Open

Creating a new view have to click twice to show view #27

zepzia opened this issue Jun 11, 2017 · 0 comments

Comments

@zepzia
Copy link

zepzia commented Jun 11, 2017

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'
})
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant