AngularJS Directives - Quiz

  • A It is used for registering DOM listeners as well as instance DOM manipulation. It is executed once the template has been cloned.
  • B It runs end-to-end tests that are also written in JavaScript and run with node.
  • C It is to bind the HTML tags (input, select, textarea) to Angular Application Data.
  • D It refers to the application model, acts like glue between application controller and the view. It can watch expressions and propagate events.
  • A <pre class = "prettyprint"><xmp> <select ng-model=""> <option ng-repeat="x in cars">{{x.model}}</option> </select> <h1>You selected: {{}}</h1> </xmp></pre>
  • B <pre class = "prettyprint"><xmp> <select ng-model="selectedCar"> <option ng-repeat="x in cars">{{x.model}}</option> </select> <h1>You selected: {{selectedCar}}</h1> </xmp></pre>
  • C <pre class = "prettyprint"><xmp> <select ng-model="selectedCar"> <option ng-repeat="x in cars">{{x.model}}</option> </select> <h1>You selected: {{selectCar}}</h1> </xmp></pre>
  • A CSS
  • B Element directives
  • C Attribute
  • D All the options mentioned