Skip to content

Commit 7e30a33

Browse files
committed
Add decorator questions
1 parent 9a26559 commit 7e30a33

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@
131131
|123| [How do you create app shell in Angular?](#how-do-you-create-app-shell-in-angular)|
132132
|124| [What are the case types in Angular?](#what-are-the-case-types-in-angular)|
133133
|125| [What are the class decorators in Angular?](#what-are-the-class-decorators-in-angular)|
134+
|126| [What are class field decorators?](#what-are-class-field-decorators)|
134135

135136
1. ### What is Angular Framework?
136137

@@ -1642,3 +1643,10 @@
16421643
3. @Pipe()
16431644
4. @Injectable()
16441645
5. @NgModule()
1646+
1647+
126. ### What are class field decorators?
1648+
The class field decorators are the statements declared immediately before a field in a class definition that defines the type of that field. Some of the examples are: @input and @output,
1649+
```javascript
1650+
@Input() myProperty;
1651+
@Output() myEvent = new EventEmitter();
1652+
```

0 commit comments

Comments
 (0)