JSFiddle - React, Tailwind, and code Playground
by Gonzalo
HTML
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.17/angular-resource.min.js"></script>
<body ng-app="myapp">
<div>Holas esto es un <mark>DEmo</mark></div>
<div ng-controller="HelloController" >
<h2>Hello {{helloTo.title}} !</h2>
</div>
</body>
JavaScript
angular.module("myapp", ['ngResource'])
.controller("HelloController", ['$resource',function($scope, $resource) {
$scope.helloTo = {};
$scope.helloTo.title = "World, AngularJS";
$scope.init = function(){
var Service = $resource('http://platan.us/jobs/apply', null, { 'post': { method:'JSONP', unique:true } });
Service.post(
{
"name": "Gonzalo",
"email": "[email protected]",
"github": "github.com/gonzalo0917",
"resume": "gonzalojpv.com/CVGonzaloJPV.pdf",
"linkedin": "linkedin.com/in/gonzalojpv",
"city": "Aguascalientes, Mexico",
"other": {
"twitter": "@gonzalojpv",
"employer": "Softtek",
"blog":"http://gonzalojpv.wordpress.com/",
"message": "Hola chicos de Platanus espero puedan darme la oportinudad de mostrar mis skills, Regards!"
}
}).$promise.then(function(response) {
console.log(response)
}, function(e){ console.log(e)});
}
}] );