点击运行
姓氏为 {{lastname}} 家族成员:
{{x}} {{lastname}}
注意 $rootScope 在循环对象内外都可以访问。
运行结果