I have in my controller:
$scope.items = myItems;
var myItems = [{title=""}]
but on my view nothing gets displayed, if i set the $scope.items to equal the list it works fine. Eventually i want to be able to change the list used when i user clicks a div on my view. i will be using this statement to switch
$scope.toggle = function (tog) {
if (tog == 0) {
$scope.items = myItems;
} else if (tog == 1) {
$scope.items = companyItems;
};
};
var myItems = [{title=""}]var myItems = [{title:""}]$scope.itemsbefore assigning tomyItems, so$scope.itemsis undefined