meteor

How to pass a parameter to pathFor in Handlebars for Iron-Router with Meteorite?

守給你的承諾、 提交于 2019-12-18 10:09:17
问题 I have a simple route with a parameter: this.route('article', { path: '/article/:_id', data: function() { return Articles.findOne(this.params._id); } }); I would like to have use the pathFor handlebars helper here with the _id: {{#each articles}} <li><a href="{{pathFor 'article' _id}}">{{title}}</a></li> {{/each}} This doesnt work for passing the _id tag into the url though... 回答1: <li><a href="{{pathFor 'article' _id=this._id }}">{{title}}</a></li> Thats how you pass a parameter 回答2: In your

How to reset password in meteor application

自作多情 提交于 2019-12-18 09:55:12
问题 I am building a Meteor application and am using the oaf:accounts-entry package to handle my user registration & authentication. I am working on the reset password function right now. However, when I click on "email reset password link", the application doesn't email me anything. Can someone help me or point me to instructions on how to configure the reset password function for the oaf:accounts-entry package? After doing a google search, I could not find instructions on how to configure it.

Why is undefined being returned for Meteor.call() in client?

偶尔善良 提交于 2019-12-18 09:48:16
问题 So I'm attempting to access the twitter REST API and retrieve the screen name of a tweet. I feel like my code will be better explanation: I'm calling the method 'screenName' from the isClient() : 'click button': function () { Meteor.call('screenName', function(error,result) { if (error) { console.log(error); } else { window.alert(result); } } ) } And for some reason the method returns undefined when its actually logging in the screen name of the twitter account on the console. Meteor.methods(

A simple example of an Ionic UI that is wired up as a Meteor client?

杀马特。学长 韩版系。学妹 提交于 2019-12-18 08:58:19
问题 I've started this tutorial several times, without time to complete it with success. WhatsApp Clone with Meteor and Ionic 2 CLI There are a lot of nuggets in the tutorial, above and it seems thoroughly laid out. However, it's pretty bloated just to see a simple example of an Ionic UI behaving as a Meteor client. If any of you could point me in the right direction... it would be greatly appreciated! 回答1: With the following I'd like to summarize the situation on Meteor and Angular. Deprecated

Accessing meteor production database in 2016

烈酒焚心 提交于 2019-12-18 08:43:10
问题 It seems the answer in this thread (Accessing Meteor production database) does not work anymore when you want to access a meteor production database in 2016. I want to access a meteor production database blah.meteor.com using meteor mongo blah.meteor.com instead what I get is: connecting to: sg-mother1-6243.servers.mongodirector.com:27017/blah_meteor_com 2016-01-18T15:21:49.884+0200 Error: 18 { ok: 0.0, errmsg: "auth failed", code: 18 } at src/mongo/shell/db.js:1210 exception: login failed

Meteor's Email is undefined

纵然是瞬间 提交于 2019-12-18 07:14:49
问题 After adding Meteor's email package and restarting the server (for good measure), I do this: Template.messaging.events({ 'click #send-message' : function () { Email.send({ from: 'test@gmail.com', to: 'test2@gmail.com', html: 'heyo buddy.' }); } }); When I fire the event, the console spits out: Uncaught ReferenceError: Email is not defined The docs say that even unconfigured, Email.send() should output to standard output. I get the same problem when deployed to meteor.com, which should be

how can we get the size of a surface within famo.us?

廉价感情. 提交于 2019-12-18 07:14:30
问题 If i create a famo.us surface giving a size of [true, true] and put some arbitrary html content into it, is there a clean way to retrieve the size of the object? surface.getSize() just returns the same [true,true] I noticed there are some apparently private methods such as: s._currTarget.clientHeight but it seems asking for trouble to use those! 回答1: There are a couple of ways to solve this issue. Famo.us is aware of this limitation and it should be pretty high on the priority list.. In this

Unexpected mongo exit code 100. Restarting

╄→尐↘猪︶ㄣ 提交于 2019-12-18 05:54:22
问题 I was trying to run Meteor on my VPS and I was getting this error: Unexpected mongo exit code 100. Restarting. Unexpected mongo exit code 100. Restarting. Unexpected mongo exit code 100. Restarting. Can't start Mongo server. MongoDB had an unspecified uncaught exception. This can be caused by MongoDB being unable to write to a local database. Check that you have permissions to write to .meteor/local. MongoDB does not support filesystems like NFS that do not allow file locking. I have figured

How to count the current number of subscriptions to a meteor publication

空扰寡人 提交于 2019-12-18 05:17:24
问题 I have a publication on the meteor server and I would like to know how many clients are currently subscribed to that publication. The reason for this is, that I would like to show subscription count to a "publication owner". Here is a simplified code-snipped of how I try to achieve this (of course instead of doing a console.log I would increment/decrement a shared document) Meteor.publish('sessionForId', function (sessionId) { console.log('increment subscription count for ' + sessionId); this

Meteor: iron-router => waitOn without subscribe

懵懂的女人 提交于 2019-12-18 05:16:14
问题 i want a loading template to appear before the site has all data to be rendered. And after the serverside Method gives me the Data(from an API [async]) via Meteor.call i want to load the correct layout. I tried many ways found on Google which describe similar but not exatcly the same problem. Including the way to define a function with ready handle, also doesn´t work. I can´t get it running. i don´t want to use Collections because this is user specific Data.( i think this is not efficient to