Put in order · Angular course · Module 2: Components
@Component Decorator Properties
Arrange the lines of the component definition from top to bottom (the order of properties inside the decorator does not matter):
Items to put in order
- export class SamuraiComponent {}
- @Component({
- })
- selector: 'app-samurai',
- templateUrl: './samurai.component.html',
Show the answer
Correct order:
- @Component({
- selector: 'app-samurai',
- templateUrl: './samurai.component.html',
- })
- export class SamuraiComponent {}