Search code examples
angularjspartialpartials

Angular JS and partials


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)


Solution

  • Yes, you can do it using ngInclude directive.

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