meteor

Why is Meteor using imports in 1.3 tutorial

ぃ、小莉子 提交于 2020-01-06 19:52:15
问题 Why is Meteor using imports in 1.3 tutorial - it makes it harder to managed than before which I think is totally against the grain for what they wanted to accomplish from the start? Can I run files from 1.2 with 1.3? What are the advantages with the new file system, it's not clear in the tutorial? Thanks! 回答1: What are the advantages with the new file system? In the near term: Module support gives you the ability to control your file load order. E.g. no more prepending numbers to file names,

Meteor Cordova: Cannot get camera plugin to work, Uncaught TypeError: Cannot read property 'getPicture' of undefined

旧巷老猫 提交于 2020-01-06 19:39:28
问题 I am trying out the Meteor Cordova camera plugin and it won't work, and I have no idea what I'm missing. Here is what I did: Meteor create new project Added the cordova camera package meteor add cordova:org.apache.cordova.camera@0.3.1 Programmed the default button on screen to take a picture and then append it to the body. This should use the camera built into the laptop computer but all I get when I click the button is: Uncaught TypeError: Cannot read property 'getPicture' of undefined And

Meteor: Bind function to work for every iteration of template

好久不见. 提交于 2020-01-06 19:38:06
问题 I'm fairly new to Meteor and I can't get my head around how to get a function to work in every iteration of a template independently from the others. I've written a very basic function where I want to display a pop up inside each template on button click, but the pop up always appears at the first generated template instead of being bound to the specific button I click. I've searched around and found that it might have to do with template instances or reactive variables but as of now I'm

Meteor apk release build not working

橙三吉。 提交于 2020-01-06 19:28:04
问题 I'm working on a mobile app using Meteor and ionic. When I built the apk for android, the apk generated (release-unsigned.apk) didn't work on my device. It does show the splash screen, then it just shows a blank white screen and that's it. I run it in bluestacks and used remote debugging to figure out what wrong, and this error came up in the console: Uncaught Error: [$injector:modulerr] Failed to instantiate module SoldatyApp due to: Error: [$injector:unpr] Unknown provider: e http://errors

POST from Ruby to Meteor with Iron Router?

一曲冷凌霜 提交于 2020-01-06 19:27:41
问题 I've been trying to get a message from a Ruby script to a webapp built with MeteorJS using POST, but I've been facing some issues. There isn't much documentation online about POST and GET method management with Iron Router. My Ruby script: meteorUri = URI('http://localhost:3000/newReport'); res = Net::HTTP.post_form(meteorUri, 'message' => 'HelloFromRuby', 'max' => '50') puts "From Meteor:\t#{res}" I don't have much experience with Ruby. The above code I got mostly online. The routing with

Meteor apk release build not working

 ̄綄美尐妖づ 提交于 2020-01-06 19:26:45
问题 I'm working on a mobile app using Meteor and ionic. When I built the apk for android, the apk generated (release-unsigned.apk) didn't work on my device. It does show the splash screen, then it just shows a blank white screen and that's it. I run it in bluestacks and used remote debugging to figure out what wrong, and this error came up in the console: Uncaught Error: [$injector:modulerr] Failed to instantiate module SoldatyApp due to: Error: [$injector:unpr] Unknown provider: e http://errors

Porting Express App to Meteor

旧时模样 提交于 2020-01-06 18:05:08
问题 I have been working on porting a basic Express based app to Meteor. The excellent post Is there an easy way to convert an express app to meteor? was a great start, using a waiter function to wrap iron-router routes that Meteor expects into req / res that Express likes. However, I've hit a bug that I'm stuck on. I'm not able to get Meteor to pass the res.render object over to my handlebars templating engine. For example: main.js app.get('/complex', function(req, res){ var data = { name:

Getting Exception in template helper: quickFormContext with aldeed:autoform

孤者浪人 提交于 2020-01-06 16:19:45
问题 I'm having an issue with aldeed:autoform which I can't solve, nor understand what is the cause. The template: <template name="staffCaseEdit"> {{> quickForm collection=Cases id="inserNewItem" type="insert"}} </template> I use aldeed:collection2 and aldeed:simple-schema to manage collections. So, I have the Case schema and Cases collection, both defined in /lib so they should be available on the client side, too. Next, there's the route: FlowRouter.route('/staff/case/:id', { triggersEnter: [

Meteor - Creating a variable within publish

ぃ、小莉子 提交于 2020-01-06 15:42:09
问题 I'm try to get the below publish function to work. I would like to retrieve all users who do not have a class that the current user has in their profile.classes array. What am I doing wrong here? Meteor.publish('classes', function () { var class = Meteor.users.find({_id: this.userId},{fields: {"profile.classes": 1}}); var users = Meteor.users.find({ roles:'is_student', "profile.classes": { $ne : class } }}); return users; }); 回答1: Assuming profile.classes holds an array of strings and that

datatables are not updating in meteorjs

瘦欲@ 提交于 2020-01-06 15:14:05
问题 I am working on an application using meteorjs. I am totally new to meteor. In my application I am using dataTables with meteor for shorting , pagination and searching. This is my template code <template name="questions"> <div class="col-md-3"> {{#constant}} <table class="table table-striped table-bordered table-condensed table-hover listing" id="content_listing-table"> <thead> <tr> <th>Questions</th> </tr> </thead> <tbody> {{#each questions}} <tr> <td> <a href="#" data-id={{_id}} class="edit"