I have an internship where I will be required to use Angular JS HTTP, I want to make sure I can get it to work.
<script> var app = angular.module('myApp', []); app.controller('myCtrl', function($scope, $http) { $http.get("data.json") }); </script> <div ng-app="myApp" ng-controller="myCtrl"> <li ng-repeat="name in Person">{{name.Name}}</li> </div> And my JSON file
{ "Name": "Daniel" } Thanks,
I'm not sure how to link the url for the JSON file.
data.json?.successand.thenmethods and the one that uses the.thenmethod is wrong.