@Component({ templateUrl: './orders.component.html' }),
@Component({
  template: './orders.component.html'
})
,
@Component({
  templateUrl: './orders/orders.component.html'
})
,
@Component({
template: `
 ./orders/orders.component.html`
})
" /> @Component({ templateUrl: './orders.component.html' }),
@Component({
  templateUrl: './orders.component.html'
})
,
@Component({
  template: './orders.component.html'
})
,
@Component({
  templateUrl: './orders/orders.component.html'
})
,
@Component({
template: `
 ./orders/orders.component.html`
})
" /> @Component({ templateUrl: './orders.component.html' }),
@Component({
  template: './orders.component.html'
})
,
@Component({
  templateUrl: './orders/orders.component.html'
})
,
@Component({
template: `
 ./orders/orders.component.html`
})
" />
Google News
logo
Angular - Quiz(MCQ)
What is the correct syntax to associate an external template file orders.component.html to an OrdersComponent , when both are in the same orders/ folder?
A)
@Component({
  templateUrl: './orders.component.html'
})
B)
@Component({
  template: './orders.component.html'
})
C)
@Component({
  templateUrl: './orders/orders.component.html'
})
D)
@Component({
template: `
 ./orders/orders.component.html`
})

Correct Answer : Option (A) :  

@Component({
   templateUrl: './orders.component.html'
})