AngularJS AngularJS Directives Question #4183
MCQ Single Best Answer Not Set

QWhat is the code, if you want to increment the count?

<button> Increment (on double click) </button> count: {{count}}

ID: #4183 AngularJS Directives 133 views
Question Info
#4183Q ID
Not SetDifficulty
AngularJS DirectivesTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • 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}}
    
Correct Answer: Option C

Explanation


 <ng-dblclick="count = count + 1" ng-init="count=0">

Share This Question

Challenge a friend or share with your study group.