Generate root menu in "sidemenu"


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-item item-type="item-icon-left" ng-repeat="option in menu" href="{{option.path}}">
    <i class="icon {{option.icon}}">

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

Looks like its not possible? I just checked this git: