Which of the below code-snippet will help you to load a component using <my-component></my-component>?

@Component({
selector: 'app-my-component',
templateUrl: './my.component.html',
styleUrls: ['./my.component.css']
})

@Component({
name: 'my-component',
templateUrl: './my.component.html',
styleUrls: ['./my.component.css']
})

@Component({
selector: '<my-component></my-component>',
templateUrl: './my.component.html',
styleUrls: ['./my.component.css']
})

@Component({
selector: 'my-component',
templateUrl: './my.component.html',
styleUrls: ['./my.component.css']
})

Verified Answer
Correct Option - d

To get all Infosys Certified Angular Web Developer Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee

Telegram