1
I have the code:
<div ng-show="d.box" class="box-red">
<img src="images/boxred.jpeg">
</div>
<div>
<i class="button" ng-click="d.box = !d.box"></i>
</div>
When I click on the icon (which is a button) a red square appears on the screen, because the Controller variable: d.box
is set of false
for true
, but if there is no ng-click and I add manually in the inspect does not work. Why does this happen?
As such "add manually to inspect"?
– Woss
Open the code in the inspect right-click go into html and manually add ng-click.
– Vinicius Morais