AngularJS Directives - Quiz

  • AAny controller and directive
  • BNone of the options
  • CAny controller
  • DAny controller or directive, filter or even inside the services
  • ACSS
  • BElement directives
  • CAttribute
  • DAll the options mentioned
  • A
    
    {{count=count+1}}
    
  • B
    
    {{count++}}
    
  • C
    
     <ng-dblclick="count = count + 1" ng-init="count=0">
    
  • D
    
    <ng-dblclick="count = count + 1" ng-init="count=0">
    
    AND {{count=count+1}}
    
  • Ang-if applies the CSS property display: none; to the elements and ng-show+ng-hide removes the HTML element completely from the DOM
  • Bng-if removes the HTML element completely from the DOM, whereas the ng-show + ng-hide just applies the CSS property display: none; to the elements.
  • CBoth performs the same function
  • Aangular.module();
  • Bvar myModule = new module();
  • Cangular.create();
  • Dmodule.create();