I am using the angular ng-repeat function, in my controller i am trying to create an array however i keep getting an error message in my inspector.
Uncaught SyntaxError: Unexpected token [
below is a snippet of my code..
var app = angular.module("homeApp", []);
app.controller("entriesView", function ($scope){
$scope.itemEntry = {[
{
image: "https://cms.myspacecdn.com/cms/x/13/47/112013-priscilla-600.jpg"
},
image1: "https://cms.myspacecdn.com/cms/x/13/47/112013-priscilla-600.jpg"
];
}
});
can someone let me know where i am going wrong, thanks