Angular JS and partials

后端 未结 3 2045
情歌与酒
情歌与酒 2021-02-01 15:11

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 li

3条回答
  •  北荒
    北荒 (楼主)
    2021-02-01 16:09

    Yes, you can do it using ngInclude directive.

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

提交回复
热议问题