ANGULAR QUIZ
1 .
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?

Correct Answer : Option (A)

@Component({
   templateUrl: './orders.component.html'
})
  Show Answer
2 .
The purpose of the providers array of an Angular module is to define the set of:

Correct Answer : Option (B)

objects available for dependency injection.
  Show Answer
3 .
What command will create a new Angular app with a root routing module?

Correct Answer : Option (A)

ng new my-dream-app --routing
  Show Answer
4 .
You apply a style selector in a component's CSS file. Which matching elements will be affected?

Correct Answer : Option (D)

All matching elements in the component, only
  Show Answer
5 .
How would you write code to modify the response from an http.get ?

Correct Answer : Option (B)

Using the map function inside of the pipe operator chained to the http.get
  Show Answer
6 .
Where would the following code likely be found in an Angular application? routerLink="/crisis-center"

Correct Answer : Option (C)

In the template
  Show Answer
7 .
What is a routerOutlet?

Correct Answer : Option (B)

A directive defined in the HTML indicating where a route's view should display
  Show Answer
8 .
According to the Angular Style Guide, what type of code should a component delegate to a service?

Correct Answer : Option (B)

Complex logic
  Show Answer
9 .
How do you load an NgModule into its own bundle?

Correct Answer : Option (A)

Use lazy loading with the route that leads to the NgModule
  Show Answer
10 .
What advantage does AOT give your app with regard to compilation?

Correct Answer : Option (B)

Precompiles at build time, instead of in the browser
  Show Answer