summaryrefslogtreecommitdiff
path: root/client/js/services/Test.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/js/services/Test.js')
-rw-r--r--client/js/services/Test.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/client/js/services/Test.js b/client/js/services/Test.js
new file mode 100644
index 0000000..f12c6b9
--- /dev/null
+++ b/client/js/services/Test.js
@@ -0,0 +1,8 @@
+var app = angular.module('mainApp',[]);
+app.controller('hassan', function($scope,$http){
+ $http.get('http://127.0.0.1/database.json').success(function(response){
+ $scope.persons = response.records;
+});
+
+
+});