Programming Code Center(PCC)
[ANGULARJS]

(PCC)::[how-to-Use-ng-bind-with-Strings-in-angularjs-program-with-output]::[angularjs]

File Name : index.html

<!DOCTYPE html>
<html>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"></script>
<body>

<div ng-app="" ng-init="firstName='John';lastName='Doe'">

<p>The full name is: <span ng-bind="firstName + ' ' + lastName"></span></p>

</div>

</body>
</html>

Output :

The full name is: