角JS和谐音 [英] Angular JS and partials

查看:183
本文介绍了角JS和谐音的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能在另外一个角度中的JS嵌入HTML页面?

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)

推荐答案

是的,您可以使用 ngInclude 指令去做。

Yes, you can do it using ngInclude directive.

查看文档和例子在这里:<一href=\"http://docs.angularjs.org/api/ng.directive%3angInclude\">http://docs.angularjs.org/api/ng.directive:ngInclude

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

这篇关于角JS和谐音的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆