The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

AngularJS Architecture: Using Sub-Modules

AngularJS Architecture: Using Sub-Modules

4:22
Let's look at sub-modules as a mechanism for organizing our code into logical containers that we can then compose into our main application. Leveraging sub-modules is a powerful way to add in new functionality and features into an application while minimizing the impact that it has on the existing code base.
Watch this lesson now
Avatar
egghead.io

Let's look at sub-modules as a mechanism for organizing our code into logical containers that we can then compose into our main application. Leveraging sub-modules is a powerful way to add in new functionality and features into an application while minimizing the impact that it has on the existing code base.

Avatar
Jose L Rguez-Campra Camberos

I think I have faults with package.json and bower.json. What program do you use your ?Where i can find it?

In reply to egghead.io
Avatar
Lukas

There isn't a bower.json or package.json file in this repository. You only need a web server to serve the application. I recommend using the npm package serve for this task.

In reply to Jose L Rguez-Campra Camberos
Avatar
Jose L Rguez-Campra Camberos

To install an NPM server on the app I have that:
Run 'npm install'.
As far as I was when I install NPM automatically reads pakage.json and then bower.json (I follow the installation: https: //docs.angularjs.org/tutorial)
As it should do? You could help me more? Thank You

In reply to Lukas
Avatar
Lukas

There is no such thing as an 'NPM server' as NPM is just a package manager for Node. We do not have a package.json file in the repository so npm install will obviously not work. More information about NPM and Bower here https://www.npmjs.com/ and here http://bower.io/.

In reply to Jose L Rguez-Campra Camberos
Avatar
Jose L Rguez-Campra Camberos

Ouch, I'm new at this, thanks for the explanation.

In reply to Lukas
Avatar
Lukas

Jose -- I apologize if that came across as curt and unfriendly. That was not my intention at all. NPM and Bower are tools to help us get things done but not a necessity. In the scope of this series, we are not using them at all. If you need a web server to view your project I recommend using npm serve https://www.npmjs.com/package/serve

In reply to Jose L Rguez-Campra Camberos
Avatar
Paul

I suppose this is fairly arbitrary, but might you call the eggly.models.bookmarks module, eggly.models.categories.bookmarks following the hierarchy of the app? Is there a particular reason why you didn't do this?

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?