<html ng-app>
<head>
<title>ActiveTuts - AngularJs Tutorials</title>
<script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script>
</head>
<body>
<div ng-controller="TodoCtrl">
<h2>Show and Hide the text using AngualrJs</h2>
<div ng-controller="TodoCtrl">
<input type="button" value="Show" ng-click="showText=true">
<input type="button" value="Hide" ng-click="showText=false">
<br/><br/><br/>
<div ng-show="showText">I am Ganeshkumar</div>
<div ng-show="!showText">Ok bye! See you later</div>
</div>
</div>
<script type="text/javascript">
function TodoCtrl($scope) {
$scope.showText = false;
}
</script>
</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