Generate root menu in "sidemenu"

Hi,

in the Ionic example, I’ve noticed that the templates/menu.html has options hard coded.
I’ve been trying so far to populate it via AppCtrl, but for some reason its not working for me. I declared the array in AppCtrl in controllers.js and in the menu.html template I have:

    <ion-list>
    <ion-item item-type="item-icon-left" ng-repeat="option in menu" href="{{option.path}}">
    <i class="icon {{option.icon}}">
    </i>{{option.title}}
    </ion-item>
    </ion-list>

Is it possible to declare an array and create the menu that way?

Looks like its not possible? I just checked this git: https://github.com/calendee/ionicDynamicRouting