Ви не можете вибрати більше 25 тем
Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
24 рядки
458 B
24 рядки
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)
|
|
}
|
|
})
|
|
|
|
|