Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to fetch data from a REST API using AngularJS (1). The URL is |: href="http://wealthyfox.in:82//api/Test/GetTestSymbols?exchanges=nc&callTypes=eq&symbolLike=infra

What I have tried:

Index.html

<!doctype html>


<title>AngularJS






The ID is {{datafromapi.Symbol}}


The content is {{datafromapi.CompanyName}}









App.js :


angular.module('app', [])
.controller('myApp', function($scope, $http) {
$http.get('http://wealthyfox.in:82//api/Test/GetTestSymbols?exchanges=nc&callTypes=eq&symbolLike=infra').
then(function(response) {
$scope.datafromapi = response.data;
});
});
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900