<html ng-app id="customersApp">
<head>
<title>RESTful JSON Parsing using AngularJs Tutorials - 1</title>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.6/angular.min.js"></script>
<script src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
<script>
function CustomersController($scope,$http){
$http.jsonp('http://public-api.wordpress.com/rest/v1/sites/wtmpeachtest.wordpress.com/posts?callback=JSON_CALLBACK')
.success(function(data) {
$scope.value = data;
console.log(data.found);
console.log(data.posts[0].author.name);
});
}
</script>
</head>
<body>
<h1>RESTful JSON Parsing using AngularJs</h1>
<div ng-controller="CustomersController">
<br/>
</div>
</body>
</html>
In this tutorial I have explain about the get YouTube thumbnail using AngularJS <html ng-app id="YoutubeApp"> <head> <title> How to get a YouTube video thumbnail dynamically from the YouTube API using AngularJS Tutorials</title> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.6/angular.min.js"></script> <script src="http://code.jquery.com/jquery-1.7.2.min.js"></script> <script> function YoutubeController ($scope) { $scope.todos = []; $scope. addVideo = function() { $scope.todos.push({text:$scope.todoText, done:false}); $scope.todoText = ''; ...
Comments
Post a Comment