View test.js
test |
View meteor-eventmap.html
<head> | |
<title>meteor-eventmap</title> | |
</head> | |
<body> | |
{{> hello}} | |
{{> hello2}} | |
</body> | |
<template name="hello"> |
View meteor_servercall.html
<head> | |
<title>meteor_servercall</title> | |
</head> | |
<body> | |
{{> simple}} | |
{{> passData}} | |
</body> | |
<template name="simple"> |
View app.js
if (Meteor.is_client) { | |
var userName = "PatelNachiket"; | |
Template.hello.greeting = function () { | |
return "Fetch recent tweets from Twitter stream of user : " ; | |
}; | |
Template.hello.events = { | |
'click #fetchButton' : function () { | |
console.log("Recent tweets from stream!"); | |
$('#fetchButton').attr('disabled','true').val('loading...'); |