Using side-menu, should I use ng-view?

Great stuff - loving the Ionic platform. I was hesitant to use it at first because I’m a bootstrap guy, but after trying it I’m sold.

I have seen this: GitHub - georgicodes/ionic-side-menu-with-navigation: Ionic Side Menu start app with navigation router

Where does ng-view go? Is side-menu to be used with ng-view?

The problem is that when I click the Login side menu item, nothing is displayed in the content area (“Login here!” is not displayed as expected)

I’m having an issue getting any views content to render using a side nav. Code:

… regular module definition …

.state('home.login', {
                url: "/home/login",
                templateUrl: "templates/login.html"


<ion-view title="'Login'" ng-controller="LoginCtrl">
    <ion-content has-header="true" padding="true">
        <p>Login here!</p>


    <!-- Center content -->
    <ion-pane ion-side-menu-content>
        <header class="bar bar-header bar-dark">
            <button class="button button-icon" ng-click="toggleMenu()">
                <i class="icon ion-navicon"></i>
            <h1 class="title">Tracker</h1>
        <ion-content has-header="true">
    <!-- Left menu -->
    <ion-side-menu side="left" width="200">
        <header class="bar bar-header bar-dark">
            <h1 class="title">User: Test</h1>
        <ion-content has-header="true" scroll="false">
                <ion-item  ng-click="goTo('/home/login')" class="item item-icon-left">Login</ion-item>

ng-view is for using Angular’s default ng-route. Ionic no longer uses it. It’s all been switched to ui-router. See this sample :

1 Like

Awesome, unfortunately my windows 8.1 install has crashed and I only had a local git repo. I will give this a try in a few days.

Another note: This would be GREAT under the side menu API DOCS or as an example reference. No where in the docs does it state this usage (at least that I’ve found)

1 Like

Yes, the docs are a bit out of date. There have been so many changes to Ionic in the last month or so that many things have changed. There is a big doc improvement coming soon.

1 Like

Sorry - that codepen seems to have disappeared. Can you repost the example?

I’m not sure exactly what I linked to anymore.

Try this one:

It’s using a side-menu with the Beta 1 released