如何将AngularJS用作模板引擎?

5
这篇文章详细介绍了如何在事件上绑定加载模板部分。但如果我想要像Smarty这样的模板引擎一样在页面加载时加载模板部分,该怎么办呢?例如,在Smarty中:
<html>
<body>
{include file="templates/header.html"}
<span>Dude, this has too be possible in Angular JS...</span>
{include file="templates/footer.html"}
</body>
</html>
1个回答

9

1
但这真的有意义吗? - Michael Brenndoerfer

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接