Code Snippet:
Blinker.html
<html>
<head>
<title>Angular.js Example</title>
<script src="Scripts/angular.js"></script>
<script>
var nameApp = angular.module('NameApp', []);
nameApp.controller('NameCtrl', function ($scope) {
// I initialized only till alphabet 'H'.. Add more if you are topper in LKG.
$scope.letters = ['A-Apple', 'B-Ball', 'C-Cat', 'D-Dog', 'E-Elephant', 'F-Frog', 'G-Girafee', 'H-Horse'];
var time = 0;
$scope.testname = function (letter) {
setTimeout(function () {
$scope.test = letter;
$scope.$apply();
}, time);
time = time + 2000;
return letter;
}
});
</script>
</head>
<body ng-app="NameApp" ng-controller="NameCtrl">
<center>
<h1>Kids Alphabet Tutor</h1><br />
<div ng-hide="letter" ng-repeat="letter in letters">
<div ng-bind="testname(letter)"> </div>
</div>
<h1>
{{test}}
<img src="Images/{{test}}.PNG" width="75px" height="75px" />
</h1>
</center>
</body>
</html>
Points to Note:
- Image file Name should be the array element names initialized in the $scope.letters.
- Below is the folder structure:
After you make sure everything is ready run the Blinker.html and you see the below output.
This is how it looks:
Alternate way using $timeout : www.dotnetselflearning.blogspot.in/2015/07/using-timeout-in-angularjs-developed.html
ReplyDeleteThank you very much for posting this informative content. I am looking forward to see more interesting and informative contents like this.
ReplyDeleteAppilab provides tutor booking app script for tutor booking app. Application for guides can possibly turn into a specialty work board drawing in mentors and customers. You may conceivably develop your business to a boundless degree. Get in touch with us for tutor booking app development service.
ReplyDeletePreparing Content. A portion of the mentoring organizations utilize their own 'exceptional preparing content' which is explicitly evolved remembering the necessities of the understudies.tutoring near me
ReplyDeleteSchool direction advisors are acceptable assets - they are probably going to realize a few mentoring organizations in your general vicinity and can help you discover guides that address your kid's issues. Asking different guardians with kids is another acceptable hotspot for finding mentoring administrations. https://www.tutorcity.sg
ReplyDeleteThe tree we get the organic product from is the whole group of past scholars' lessons and the voice that reveals to us which organic product to pick is the mediator of that information: the educator.
ReplyDeleteLes Privat
ReplyDeleteSchooling is a fundamental requirement for each person, it is the most extreme obligation of an administration to guarantee quality instruction for his kin. Supreme strides from the authority can absolutely kill lack of education from a country. Instruction is a gift, on the opposite ignorance is a revile. education
. This is particularly significant when we consider how the standard technique for instruction, similar to the financial framework, powers understudies to 'learn' in any event, when the understudies don't need the data being forced on them, and this prompts a type of fake realizing where understudies retain data or to a mechanical cycle where understudies don't disguise the data and fail to remember it when they are not being reviewed on it. best childcare Singapore
ReplyDeleteIt very well still up in the air that the group will reconvene to execute new procedures and screen progress. If inadequate advancement has been noticed, a reference for a specialized curriculum appraisal might be prescribed to assess whether or not your kid might have some sort of learning inability. 美国代写
ReplyDeleteThe training has gotten progressive change instructive fields. The schooling with the assistance of web based preparing program has open entryway for online training. The web-based type of schooling has helped in arriving at training to each specialty of world with the assistance of PC associated with web associations.coding for kids
ReplyDeleteIn any case, when comes to a downturn, the instruction cost is the key thought factor for some understudies, online training become an extraordinary choice for understudies to seek after a degree at a reasonable expense.Residential Schools in Bangalore
ReplyDeleteThe development of the print machine was occurred in roughly 1450 Promotion, by Johannes Gutenburg, a German creator. The creation of print machine was a prime formative figure the historical backdrop of instructive innovation to convey the guidance according to the need of the intricate and trend setting innovation refined society.gtouch panel glass
ReplyDelete