0

I know I can declare a dependency in angular doing:

var app = angular.module('ourApp', ['ngTagsInput']);

Which works great. Is there another place/way I can do dependency declaration in angular?

I want to do the above but I only want the dependency for a particular partial.

1 Answer 1

1

You can have multiple modules within your app but you need to manually bootstrap anything beyond the first ng-app. That said there's still no mechanism built into angular for lazy/deferred loading of modules so you'd need to handle that yourself.

Sign up to request clarification or add additional context in comments.

Comments

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.