Angular JS and partials

ParPar picture ParPar · Dec 6, 2012 · Viewed 64.9k times · Source

Is it possible to embed html page in another one in angular js?

If so, how to do it?

Here in their tutorial, the partial is not embedded in the page but it's like different page where you go when you click on one of the items. (see demo)

Answer

matys84pl picture matys84pl · Dec 6, 2012

Yes, you can do it using ngInclude directive.

See the docs and example here: https://docs.angularjs.org/api/ng/directive/ngInclude