Add waitOn function for root path
- Configure router with the name of a loading template to be implemented
- Add waitOn function, which returns posts subcription
- Enable a built in loading hook which will ensure that posts subscription is loaded before sending the user to the requested route
- Add onBeforeAction filter to trigger Iron Router's built-in loading hook
- Make sure that loading template is shown when waiting
Remove unused code
- Code has been reconfigured in the last commit
- Unused code has been expanded upon and original has been removed
Remove posts subcription from main js file
- Router is handling client-side subscription
- No need for main.js file to subcribe
Add spin to project
- Spin is an animated loading spinner
- Will be used in loading template
- Added via meteorite
- Update smart files
Add loading template
- Create new directory in client/views called includes
- Loading template will yield to spinner partial
Merge pull request #11 from alexanderdavidpan/Wait_On_Post_Subscription

Add waitOn post subscription and spinner for loading