Guest User

Untitled

a guest
Oct 21st, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. angular-01.md
  2.  
  3. does not show anything returns an error in the console:
  4. <intro productName="SpaceShipApp"></welcome>
  5. returns a blank page
  6. <intro></intro>
  7. returns the value that is stored with the json keyname name
  8. <intro productName="{{ name }}"></intro>
  9. [] is for binding from the value that is stored with the json keyname name, in the parent component to an @Input() in the child component. It allows to pass objects.
  10. <intro [productName]="{{ name }}"></intro>
  11. [] is for binding from the value(which is the string name) in the parent component to an @Input() in the child component. It allows to pass objects.
  12. <intro [productName]="name"></intro>
  13. return the text 'name'
  14. <intro productName=" 'name' "></intro>
  15. returns the the value that is stored with the json keyname name
  16. <intro productName="{{'name'}}"></intro>
  17. is for binding an event handler to be called when a DOM event is fired or an EventEmitter on the child component emits an event return the text name
  18. <intro (productName)="name"></intro>
  19.  
  20. angular-02.md
  21.  
  22. Which of the following statements about the routers behavior are correct?
  23.  
  24. The home component can only be accessed via the root URL redirect.
  25. false as { path: '', redirectTo: '/home', pathMatch: 'full' }, sets the default path to the home component
  26.  
  27. The id parameter is optional when a call is made to the /detail/ URL.
  28. false an id is required to proceed to the ItemDetailComponent Component
  29.  
  30. Optional parameters can be passed to any component via the query parameters of the ActivatedRoute.
  31. true
  32.  
  33. /detail/100 will use the to determine the position of the view.
  34. true
  35.  
  36. Specifying an outlet name is a requirement for a component with multiple outlet routes.
  37. True if there is multiply outlet routes one must be selected such as 'route1'
Add Comment
Please, Sign In to add comment