In this example of Ng-Controller
, We have two scope properties in the controller for firstname and lastname as: $scope.fName
= "David"; $scope.lName
= "Doe"; And a function which will join the firstname and lastname and return the full name as: $scope.flName
= function () { return $scope.fName + " " + $scope.lName; } And html side: First Name:
Last Name:
Full Name: {{flName()|lowercase}}