Need Assistance with AngularJS: In my controller, I have a string array that looks like this:
var app = angular.module('myApp', []);
app.controller('mycontroller', function($scope) {
$scope.menuitems =['Home','About'];
};
});
I want to display these items in the navigation pane on the left side. Here is the HTML code I am using:
<body class="container-fluid">
<div class="col-md-2">
<ul class="nav nav-pills nav-stacked" ng-repeat="x in menuitems track by $index">
<li>{{x}}</li>
</ul>
</div>
</body>
Currently, the navigation pane only shows {{x}} instead of the actual text values from the array. Any suggestions or help would be greatly appreciated.