To get started, you'll first need to create an app and a controller to house your logic.
It's important to keep application logic in the controllers and avoid putting it in the templates.
For example:
Template
<div ng-app="myApp">
<div ng-controller="MyCtrl">
<button ng-click="btn_save()">Save</button>
<button ng-click="btn_update()">Update</button>
</div>
Controller
var myApp = angular.module('myApp',[]);
function MyCtrl($scope) {
$scope.btn_save = function(){
alert("Button save clicked!")
}
}
The controller is where you will implement the logic for btn_save. In this example, an alert dialog is triggered when the user clicks the button.
Here is the Fiddle link: https://jsfiddle.net/xeq23e19/
Hope this explanation helps.