Angular: Empty Fiddle
http://angularjs.org/
by marco_m_alves
HTML
<script src="http://code.angularjs.org/angular-1.0.0rc3.js"></script>
<div ng-controller="MyCtrl">
Hello, {{name}}!
<br/>
It got {{text}}
</div>
JavaScript
//var myApp = angular.module('myApp',[]);
//myApp.directive('myDirective', function() {});
//myApp.factory('myService', function() {});
MyCtrl.$inject = ['$scope', '$http'];
function MyCtrl($scope, $http) {
$scope.name = 'Superhero';
$http.post('/echo/json', { text: 'texto'}).success(function(response) {
$scope.text = response;
}).error(function() {
console.error('xhr issue retreiving your feed!')
});
}