Nelze vybrat více než 25 témat
Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
24 lines
458 B
24 lines
458 B
import "/client/templates/loading.html"
|
|
import "/client/templates/userPage.html"
|
|
|
|
Router.configure({
|
|
layoutTemplate: 'mainLayout',
|
|
loadingTemplate: 'loading',
|
|
waitOn: function () {
|
|
return Meteor.subscribe("url_res")
|
|
}
|
|
})
|
|
|
|
Meteor.subscribe('user_res')
|
|
|
|
Router.route("/")
|
|
|
|
Router.route("/nelson", {name: 'mainItem'})
|
|
|
|
Router.route("/user/:_id", {
|
|
name: 'userPage',
|
|
data(){
|
|
return User.findOne(this.params._id)
|
|
}
|
|
})
|
|
|
|
|