Socially Tutorial Step 9.4

Hi,

In step 9.4, it says “Update the following files which use parties in import to index”. Does it mean that we need to change the line
import { Parties } from ‘…/…/…/api/parties’;
to
import { Parties } from ‘…/…/…/api/parties/index’; ?

In the GitHub repository for the tutorial there’s no such change and Socially seems to work fine with both lines.

http://www.angular-meteor.com/tutorials/socially/angular1/privacy-and-publish-subscribe-functions

import { Parties } from '../../../api/parties';

points to ../../../api/parties

Then it looks for parties.js or parties/index.js file.

I will also take a look at 9th chapter of the tutorial.

Thank you :slight_smile:
I also found this information from a tutorial that makes things more understandable:

http://ngcourse-1.rangle.io/handout/05-components/02_Components/19_Simplifying_import_s.html

“ES6’s module system is smart enough to figure out that index.js is the default file in the directory.”