![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
angular
文章平均质量分 60
_小前端
这个作者很懒,什么都没留下…
展开
-
angular学习记录
1 angular项目文件解析 创建一个angular项目ng new demo,会比较慢,等等 组件可以理解为一段带有业务逻辑和数据的html 2 组件文件的解析 组件控制屏幕上被称为视图的一小片区域。组件通过一些由属性和方法组成 //从angular核心库导入Component装饰器 import{Component}from'@angular/core'; //为组件类加上@Component装饰器。 //它是一个装饰函数。用于为该组件指定angular所需的元数据(m...原创 2021-05-07 15:50:49 · 898 阅读 · 0 评论 -
@ViewChild
ViewChild 父子组件中通过ViewChild调用子组件的方法 ViewChild 装饰器用于获取模板视图中的元素或直接调用其组件中的方法 Demo: //yhao-bi-special-price.component.ts父组件 import{BiFuckBase}from'@shared/bgeComponent/widget/bi-fuck/bi-fuck-page.base'; exportclassBISpecialPriceComponentextendsBi...原创 2021-05-24 17:53:40 · 128 阅读 · 0 评论