Earlier in this section I introduced the concept of partials that allows us to share code amongst different pages. In this lesson, I'll revisit this idea to modularize our post views in code. Again, we want to avoid copying and pasting as much as possible since this makes our code very difficult to maintain when changes are introduced.

Comments (4)
gabedelvillar
3 years ago
Are partials a SailsMVC feature or a Vue.js feature?
Brian Voong
3 years ago
AlfieLBTA
3 years ago
Hey Brian, any idea why: const currentUser = req.session.userId; is returning undefined, if im logged as a valid user?
AlfieLBTA
3 years ago
NVM - its late and i was trying to log the ID of the current user. Cheers.
Setwork44
3 years ago
Gym Rat hahahahahah you're too funny I swear!!! ??
Brian Voong
3 years ago
JMan
2 years ago
Wondering how I could bring the following value over to the user profile, this is so that users can be followed/unfollowed from their profile page. Any ideas?
JMan
2 years ago
NVM, figured it out!
Lazaro Ambrosio
2 years ago
Nice, how were you able to do it?!
HELP & SUPPORT