Angular 在项目中学习@ViewChild和ElementRef的使用
@ViewChild 使用二
小结
ElementRef
@ViewChild与ElementRef 结合操作子组件的DOM
作为一个刚开始学习Angular的初学者,我在以Angular为开发框架的项目中见到了包含 @ViewChild 和 ElementRef 的代码。因为是边做边学,第一次见到是感觉有点疑惑陌生࿰