A better way to build apps.
See all
Members (1,909)
Jade Q Wang's profile photo
Martin Naumann's profile photo
Meteor's profile photo
Nathan Zamecnik's profile photo
Pallavi “Liv” Anderson's profile photo
Rahul Choudhury's profile photo
Tim Heckel's profile photo
Vianney Lecroart's profile photo
Yuriy Dybskiy's profile photo
! "Animals Special" Google+ !'s profile photo
! 'Alena 'Lubimova !'s profile photo
Adrian Estrada's profile photo
Abdul Hameed's profile photo
Adam Z.'s profile photo
Akrem Gassoumi's profile photo
ANTON Miranda's profile photo
Aaron Cunnington's profile photo
Adriano Prado's profile photo
Aaron James Young's profile photo
Aislan de Sousa Maia's profile photo
Alan McGaughey's profile photo
Ajay Tatachar's profile photo
Aaron Valade's profile photo
Aidan Blenkinsopp's profile photo

Stream

Join this community to post or comment
 
I've been searching for some time now, and I can't find out how to do this. I want to know:

How do you assign a property to an instance of a template using Template.myTemplate.created?

The scope of 'created' means that if I just write 'this.value = something', then I can't access it as 'this.value' from my helpers. Instead I have to write 'Template.instance().value', which makes the code less readable.

How can this be done? I know I can do it with '{{> theTemplate value=something}}', but in some cases this just isn't feasible. I'd prefer to do it from the JS file.
1
Jiali Chen's profile photoKasper Brohus Allerslev's profile photo
3 comments
 
+Ben Hammond But Session variables can be dangerous in packages.
Add a comment...
 
Hey everyone, I am new to Meteor and experimenting with Meteor + Polymer and have one question. It looks simple but it doesn't work:-(

I want to pass array of objects to created <belo-test> polymer component (see below)

In Meteor template "userShowDashboard":

This component works

        <belo-test 
            items='[{"title": "Title 1"}, {"title": "Title 2"}]'
            header='Test HEADER'>
        </belo-test>  

but, this one NOT (no items are shown)

        <belo-test 
            items={{getItems}}
            header='Test HEADER'>
        </belo-test>  

This is meteor helper function

Template.userShowDashboard.helpers
  getItems: ->
    [{"title": "Title 1"}, {"title": "Title 2"}]

polymer component

<polymer-element name="belo-test" attributes="items header">
  <template>
          <core-submenu label="{{header}}" icon="apps" active>
            <template repeat="{{item in items}}">  
                <a href="#">
                  <paper-item data-action="switch-project">
                    <core-icon icon="chevron-right"></core-icon>
                      {{item.title}}
                  </paper-item>
                </a>                
              </template>  
          </core-submenu> 
  </template>
  <script>
  Polymer('belo-test',{
    items: []
  });
  </script>
</polymer-element>

Thank you for any suggestion.
1
roman stachura's profile photoJiali Chen's profile photo
2 comments
 
Why do you use Polymer with Meteor?
Add a comment...
 
Dear Meteor lovers,

We are pleased to announce the creation of a new boilerplate tool allowing to rapidly build Node.JS powered API’s, online stores, and many other apps (igloos).
It’s open source! Here you’ll find more details, components, examples and the source - http://eskimo.io/. Feel free to test this tool out, make pull requests and use it in your developments! Hope this will be helpful!
5
Add a comment...
 
Hi! I'm new with meteor.
I tried the simple-todo tutorial, works perfect and fast.
However I also tried to compile it into Android app, I found that when I check-recheck on computer browser quickly, sometime the Android app refreshes
I tested on Android 4.1.2 Samsung Galaxy S3
Is that problem on my Android device or MeteorJS? (I'm using the latest version)
3
Add a comment...
 
Hey folks. What is, if any, your experience with meteor admin panels/interfaces like "Meteor Admin", "Houston", "Vector" etc ? Can you recommend any for production ? Is it even worth to bother with any of these ? 
1
Colin Densem's profile photoRoderick Silva's profile photo
9 comments
 
I'm sorry. I was trying to ask a question. Heh heh.

So Meteor connects to Mongo db when you start the server? You can't set it up to connect to other Mongo db instances on other servers using configuration files? Example: Admin as a service. The user puts in the address, user, and password for their Mongo db and this admin 'app' connects and displays the data. Like the WordPress app on your phone. You can connect that to any WP instance.
Add a comment...
 
Just started a french blog and tutorial about meteorJS ! Any feedbacks, comments are welcome !
MeteorJS Freelancer. Can build Web application and mobile. Take a look at my works
1
Add a comment...

Mario Kunze

Discussion  - 
 
Hi there everybody,

I am Mario from +Healthnatives in Berlin. We are developing a social network for health based on meteor and we are still looking for ambitious developers to join our team. Anyone interested? Feel free to contact me.

Looking forward meeting you. Best, Mario
Check www.healthnatives.com
1
Add a comment...

Ivan Vaghi

Discussion  - 
 
I have refactored my meteor application by splitting up classes in different coffee files, but now it looks like class names are not visible across files anymore!!??

I get Uncaught ReferenceError: HexView is not defined 
1
1
Ivan Vaghi's profile photoPaul Brewer's profile photoDavid Collier's profile photo
10 comments
 
I tried coffeescript once with node.js, and it upset my stomach and increased the old acid reflux.  New, more cryptic errors to get rid of a few brackets and keywords is not a good tradeoff.  Especially when a good IDE can manage all the punctuation.
Add a comment...

Rahul Choudhury
moderator

Discussion  - 
 
Hey everyone, the next South Bay meetup is happening next Thursday at Google, with a focus on scalability. If you have questions about this topic or would just like to hear what others are doing, please stop by!
1
Add a comment...
 
Hi! I'm doing my first proj... a "what to do" with login.  How can I do to see oly login input after user login?
TNX
1
Luis Alvarez's profile photoPaolo Francesco BERTOLOTTI's profile photo
2 comments
 
Uhm... I don't understand!!!
Add a comment...
 
Hi guys I'm looking in to learning Meteor, whats the best starting point for a beginner, after the intro on Meteor website? 
1
1
Robert Brown's profile photoTerry Atkins's profile photoTony Fatouros's profile photo
6 comments
 
cheers guys 
Add a comment...

Created by

About this community

Meteor is an open-source platform for building top-quality web apps in a fraction of the time, whether you're an expert developer or just getting started.
The internet

Idris Jafer

Discussion  - 
1
Add a comment...
 
Hi, I've been playing with Meteor for a few weeks now, and I really like it.

I have a question about Mongo collections though, because I'm having some difficulties understanding how to make them efficient.

Assume that I have a social network with a few million users and a few billion posts. Each post is stored in my "Posts" collection, each having an "owner", a "contents" and a "date" property.

So, if I wish to retrieve all the posts from a certain user, would Mongo then retrieve the posts from all users, and then do a filter? Because if I understand this correctly, that makes the example setup extremely inefficient.

So, questions:
1) Is this how it works?
2) If it is, how would I deal with the problem in practice, given my example?
2
Paul Brewer's profile photoAndrea Pinazzi's profile photo
7 comments
 
mongo does scan every Post if you didn't set an index on author_id.

else the retrieval is done intelligently scanning only the minimum set of items in the post collection.

Mongo configuration and performance tuning is quite independent from Meteor.

Here's a starting point. http://docs.mongodb.org/manual/reference/method/cursor.explain/
Add a comment...
 
Only on February 4th 2015: Get 50% off Meteor in Action when using the code dotd020415au during check out!
2
1
Yau Ri's profile photoEric Taïeb Walch's profile photo
Yau Ri
 
thanks for the discount! just bought it!
Add a comment...
 
For all you meteors. Found this great list of resources. Check it out!
https://github.com/ericdouglas/Meteor-Learning/blob/master/README.md
2
Add a comment...

Utsav Popli

Discussion  - 
 
Hello, I am very new to MeteorJS. It would be really helpful if somebody could help me out with some good books and tutorials over the meteor framwork. 
Thank you 
4
Utsav Popli's profile photo
9 comments
 
Thank you so much guys ! i really appreciate that !
Add a comment...

Ivan Vaghi

Discussion  - 
 
Now this is weird.. the IronRouter on my page gets hit twice when first loaded or refreshing (it could happen at other times but I am not sure.. either it doesn't happen or it's rare).
1
Ivan Vaghi's profile photoPaul Dowman's profile photo
3 comments
 
Your subscription or some variable that you access in a before or after function is probably causing it to ve rerun reactively.
Add a comment...
 

Hey everyone, I am new to Meteor.
I have a question. Can I write IronRouter rule in different files?

in my project:

#Layouts.client.coffee

  Router.route '/', () ->@render'Home'
  Router.route '/CRUD', () ->@render'CRUD'

is work.

but,if write in different files. not work.(just "Home" work. "CRUD" don't)

#Layouts.client.coffee
 Router.route '/', () ->@render'Home'

#CRUD.client.coffee
 Router.route '/CRUD', () ->@render'CRUD'

any idea?
1
Martin Smola's profile photoBen Hammond's profile photo
5 comments
 
Yeah, I'm not sure. It might have something to do with the Coffee usage, I guess.
Add a comment...
 
Hi I am new to the community and I am trying my early experiments.
I am using IronRouter, but I don't seem able to decode the parameters appropriately. When I load http://localhost:3000/map/abc with the following code I get empty params!

Any idea of what is going on?

if Meteor.isClient
  Meteor.startup ->  
    Router.route '/map/:shortcode', ()->
      alert JSON.stringify @params
      alert @params.shortcode
1
Robert Brown's profile photoIvan Vaghi's profile photo
15 comments
 
Thank you guys, I'll try to set up a reasonable routing from scratch and move my code back into it!
Add a comment...

Celal Basar

Discussion  - 
 
How could I generate a .pdf from a html element with current css styles in my meteor app? Can somebody suggest a package? 
1
1
Celal Basar's profile photoRobert Brown's profile photoRobbie Van Gorkom's profile photo
3 comments
 
why would you want to do that?
Add a comment...