Port of jquery-ujs to AngulrJS and fit AngularJS style.