Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Ion-view dissapears on state change

$
0
0

@SM3RKY wrote:

I have this weird intermittent issue where my home page displays the banner header but doesn't show any content below that. After a bit of investigation it seems the ion-view element is not present in the HTML at all, and when changing state it appears again loaded with the page content of the new state. On return to the 'Home' state the element disappears again.

Below I have added my app config

.config(function($stateProvider, $urlRouterProvider) {
    $stateProvider

    .state("app", {
        url: "/app",
        abstract: true,
        templateUrl: "templates/menu.html",
        controller: "AppCtrl"
    })

    .state("app.home", {
        url: "/home",
        cache: false,
        views: {
            "menuContent": {
                    controller: "home",
                    templateUrl: "templates/home.html"
            }
        }
    })

    ...

    $urlRouterProvider.otherwise("/app/splash");
})

As I said it only happens intermittently and you seem to have to revisit the page a few times to get it to break. Have looked around the internet for a while but cannot seem to find anything related.

Cheers

Aaron

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>