I need how to load dynamically page loading in same page using meteor js.I will develop for Admin panel ,after login Admin display admin details dynamically with same template page.
2 Answers
I'd suggest you use routes for this. This also allows you to control what other users see when they aren't admin and redirect, etc. instead of using a crazy number of conditional statements. For an example of an admin interface that is actually added via a smart package, see the following files, which use iron-router:
https://github.com/HarvardEconCS/turkserver-meteor/blob/master/admin/clientAdmin.html https://github.com/HarvardEconCS/turkserver-meteor/blob/master/admin/clientAdmin.coffee