- [] @Raise
- [] @Event
- [✅] @0utput
- [] @EventEmitter
- [] It returns a Hero object with an associated Observable property
- [] It returns an Observable that emits an item of type Hero
- [] It returns an observable created by passing in a hero object
- [✅] it returns an observable that can be mapped to an item of type hero
- [] React to end-user changes and automatically display appropriate validation messages
- [] create and manipulate streams of events and data using observable sequences and fluent query operators
- [✅] React to the form factor and orientation of the device and automatically adjust the display for optimum viewing
- [] Define a build pipeline that reacts to code changes and deploys the application to production
- [] <input ngModel="LastName' />"
- [✅] <input [ngModel]="LastName' />"
- [] <input [(ngModel)]="LastName />"
- [] <input ([ngModel])="LastName />"
5. Which of the following will result in the style classes "main" and "tall" being added to the DOM node?
- [✅] [ngClass]="'main tall"
- [] [ngClass]="'main + tall"
- [] [ngClass]="'main : tall'
- [] [ngClass]="'main && tall'"
- [✅] ngbuild
- [] ng prod
- [] ng build --prod
- [] ng prod --build
- [] -
- [✅] *
- [] |
- [] #
- [] /
- [✅] | Observable
- [] static value
- [] Promise
- [] callback function
- [] The syntax links a route to a service by matching the assigned string to a service class name.
- [] The syntax navigates to the component with a path matching the assigned string.
- [] The syntax navigates to the component with a name matching the assigned string.
- [✅] The syntax links a route with data by matching the assigned string to a property name
10. According to the Angular Style Guide, why should unit test files be named the same as the feature they represent, but with a .spec.ts extension?
- [] Keeps the file structure more organized
- [] They shouldn't. Instead, unit tests should be in the same file as the Angular feature
- [✅] Helps identify which files to serve with ng serve
- [] Provides a consistent way to identify tests with pattern matching test runners
- [] ngOnDirty
- [✅] ngOnInit
- [] ngOnChanges
- [] ngOnKeyPress
- [] ngOnInput
- [] To define what external libraries, if any, your app needs
- [✅] Define the set of modules whose exported components directives and pipes the templates of this module need
- [] To define the set of services that are created and available for dependency injection
- [] To define what information a form will capture
- [] To ensure a route is valid before navigation to that route
- [] To perform two-way data binding
- [✅] To guard against null and undefined values in property paths
- [] To ensure the user has saved data before navigating away from a route.
- [✅] Using the map function inside of the pipe operator chained to the http.get
- [] Using the transform operator chained to the http.get
- [] Subscribing to the http.get and setting the response to a local variable
- [] Using the modify operator chained to the http-get
- [] ngRepeat
- [] *ngif
- [✅] nghide
- [] *ngfor
- [] ngshow
- [] ngFor
- [✅] ngrepeat
- [] ngSwitch
- [] ngCollection
- [✅] Pipes
- [] Services
- [] modules
- [] Child Components
- [] --testing=false
- [✅] --unit-test=false
- [] --skiptests=true
- [] --test=false