Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Space.ui.Mediator not available #12

Closed
zimt28 opened this issue Dec 12, 2014 · 10 comments
Closed

Space.ui.Mediator not available #12

zimt28 opened this issue Dec 12, 2014 · 10 comments

Comments

@zimt28
Copy link
Contributor

zimt28 commented Dec 12, 2014

When I meteor add space:ui to an existing app and run it, there is no Space.ui.Mediator available. Where can I get it from?

@DominikGuzei
Copy link
Member

Hey @zimt28!
That's pretty strange, what do you see in your .meteor/packages file?
There should be an entry pointing to the latest release: space:ui@3.1.2
If its not there, or a different version, just replace it with that ;-)

@DominikGuzei
Copy link
Member

I am closing this, as I can't reproduce your problem from here without any further information ;-)

@zimt28
Copy link
Contributor Author

zimt28 commented Jan 13, 2015

I'll try the latest version tomorrow and then let you know if it works!

@DominikGuzei
Copy link
Member

cool thanks!

@zimt28
Copy link
Contributor Author

zimt28 commented Jan 14, 2015

Will take some more time as martino:iron-router-i18n doesn't support iron:router 1 yet and I don't get the latest version of space:ui because of that /:

@DominikGuzei
Copy link
Member

@zimt28 please try it with version 3.4.0 – I removed iron-router support and with it the dependency on any specific iron-router version. Since the RouterController API wasn't very useful anyway this makes more sense. Please have a look at the TodoMVC example to see how iron:router is integrated by the application now.

@zimt28
Copy link
Contributor Author

zimt28 commented Jan 15, 2015

Nice :) Just ported my first page to space:ui, great work 👍

@DominikGuzei
Copy link
Member

Awesome! Glad it works for you now :-)

@zimt28
Copy link
Contributor Author

zimt28 commented Jan 15, 2015

Yeah, thanks :) How would you get a single document from the store?

@DominikGuzei
Copy link
Member

You can put anything into the state of the store, also a the cursor to a single document:

setInitialState: -> {
  firstTodo: @todos.findOne()
}

and change it later to anything else in any of the store methods:

@setState 'firstTodo', title: 'blablub' 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants