Angular js project not working
I am working on a small project with angular js (ps: this is the first time i use it) and i am blocked by this error and i dont understand why
angular.module("jsonerator", [])
.controller('theController', function ($scope) {
$scope.personld = {
"@context": {
"schema": "http://schema.org/"
},
"@graph": [
{
"@id": "person",
"@type": "schema:Person",
}
]
}
$scope.personld["@graph"][0]["schema:givenName"] = "";
$scope.personld["@graph"][1]["schema:familyName"] = "";
}
+3
source to share