两种方法关联控制器和DOM

1.通过ng-controller指令绑定到指定dom元素

2.使用ng-route动态关联一个加载的dom模板

原文地址:https://www.cnblogs.com/hhs6880/p/6554635.html