Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

requiring files question #216

Closed
matthewchung74 opened this issue Oct 17, 2014 · 3 comments
Closed

requiring files question #216

matthewchung74 opened this issue Oct 17, 2014 · 3 comments

Comments

@matthewchung74
Copy link

#1 I'm confused with how files are being required. Looking at users.server.controller.js it requires files using require('./users/users.profile') but the real file is users.profile.server.controller. Can someone help explain how this works?

@matthewchung74
Copy link
Author

Also a follow up question, where is the require for users.profile.server.controller?

@aarosil
Copy link

aarosil commented Oct 17, 2014

This should help you out

https://github.com/meanjs/mean/search?utf8=%E2%9C%93&q=require.extensions&type=Code

The server.xxx.js extension is added to the search using
require.extensions, as shown in code in the above link

Similar query should let you find the users controller. I saw it included
in this way in some route files and articles controller.

-A

On Thu, Oct 16, 2014 at 9:21 PM, Matthew Chung notifications@github.com
wrote:

Also a follow up question, where is the require for
users.profile.server.controller?


Reply to this email directly or view it on GitHub
#216 (comment).

@matthewchung74
Copy link
Author

thanks aarosil!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants