ecwyne / meteor-polymer-elements

Add polymer-elements to Meteor project
https://atmospherejs.com/ecwyne/polymer-elements
59 stars 14 forks source link

default metor project after installed polymer-elements click function not working #11

Closed macroramesh6 closed 9 years ago

macroramesh6 commented 9 years ago

I tried to connect polymer with meteor project.

Meteor create test Meteor add meteor add ecwyne:polymer-elements Meteor run

while running meteor says

Error: Failed to execute "git ls-remote --tags --heads git://github.com/Polymer/core-doc-viewer.git", exit code of #128

Error: Failed to execute "git ls-remote --tags --heads git://github.com/Polymer/core-scroll-header-panel.git", exit code of #128

and more similar kind of errors... after sometimes meteor says

installing polymer-elements

After sometimes

=> Meteor server restarted => Started your app.

=> App running at: http://localhost:3000/

test.html <head>
<title>polytest</title>
<link rel="import" href="bower_components/paper-checkbox/paper-checkbox.html">
</head>
<body>
<h1>Welcome to Meteor!</h1>
{{> hello}}
<div><paper-checkbox checked></paper-checkbox></div>
</body>
<template name="hello">
<button>Click Me</button> //Here the Button
<p>You've pressed the button {{counter}} times.</p>
</template>

test.js if (Meteor.isClient) { // counter starts at 0 Session.setDefault('counter', 0);

Template.hello.helpers({ counter: function () { return Session.get('counter'); } });

Template.hello.events({ 'click button': function () { console.log('Button clicked'); // Not working // increment the counter when button is clicked Session.set('counter', Session.get('counter') + 1); } }); }

if (Meteor.isServer) { Meteor.startup(function () { // code to run on server at startup }); }

In above code polymer element is works fine but click function is not working.

Here the list of installed packages in meteor

meteor-platform autopublish insecure ecwyne:polymer-elements