1. Angular 装饰器一共有,如下图:
2. 其中常用的有
ViewChild 引入子组件对象时使用
Component 组件
input 子组件接受注入参数标识
output 子组件返回信号函数标识
Pipe 管道
Injectable service
NgModule 模块
本文介绍了Angular中常用的装饰器,包括@ViewChild用于引入子组件对象、@Component定义组件、@Input子组件接受参数、@Output子组件返回信号、@Pipe管道处理、@Injectable服务提供依赖注入、@NgModule模块配置。
1. Angular 装饰器一共有,如下图:
2. 其中常用的有
ViewChild 引入子组件对象时使用
Component 组件
input 子组件接受注入参数标识
output 子组件返回信号函数标识
Pipe 管道
Injectable service
NgModule 模块
1308

被折叠的 条评论
为什么被折叠?