1

I am developing angularjs project. I want to separate code as modularize. After seperating module wise, i want to combine that in a page. How i combine modules in a single page?

1
  • You can use Grunt.js Commented May 25, 2015 at 7:06

1 Answer 1

1

Ensure you've included the source of each module in your index.html:

<script src="/bower_components/module-1/dist/module-1.min.js"></script>
<script src="/bower_components/module-2/dist/module-2.min.js"></script>

Then in your index.js:

angular.module('myApp', [
  'module1Name',
  'module2Name'
]);
Sign up to request clarification or add additional context in comments.

2 Comments

Thank u richard. is there any good modular separation blog or pdf available? please send link if available.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.