문제

Where am I supposed to put

Router.map(function(){
    this.route(name:String, options:Object);
});

and all other iron-router code with meteor? In the main.html file?

도움이 되었습니까?

해결책

You can have a look at the unofficial-meteor-faq for some file organization ideas. It should be under the client directory - e.g. client/lib/routes.js, but there isn't a strict rule about where it should go.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top