Example for referencing AngularJS $rollbackViewValue() in controller
Project
index.html
script.js

backing Plunker

index.html
Preview