P
P
Philip Gaponenko2015-11-16 19:23:29
Angular
Philip Gaponenko, 2015-11-16 19:23:29

Can one angularJS application be contained within another?

For example:

<html ng-app="fooApp">
  <body>
    <section ng-app="barApp"></section>
  </body>
</html>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2015-11-16
@filgaponenko

no. do everything on components. then barApp will become a dependency of fooApp and ng-app will be replaced by barApp and fooApp directives respectively.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question