Here is my plunk.
I am using ngRoute
.
I am trying to increment a value by ng-click
, and when I click "Show total" link, it should load the ng-view
template showing the value. However, it does not show the incremented value. It's like it's not accessing the scope.
What's wrong here?