« Previous | 1 | 2 | 3 | Next »

get ajax request with angular js

{{data}}
======================================================

Doing it in prefered way (Wrapping $http in a factory)

{{friends}}
<html>
<head>
</head>
<body ng-app='myapp' >
<h2>get ajax request with angular js</h2>
<div ng-controller='axajCtrl'>{{data}} <br></div>
======================================================</br>
<h2>Doing it in prefered way (Wrapping $http in a factory)</h2>
<div ng-controller='prefferedCtrl'>{{friends}}</div>
</body>
<script src="app.js"></script>
</html>
« Previous | 1 | 2 | 3 | Next »


copyright © 2014 - all rights riserved by javatechnologycenter.com