AngularJS Tutorial - Expression with hardcoded string








The following code shows how to use expression with hardcoded string.

Example


<!DOCTYPE html>
<html ng-app>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.13/angular.js"></script>
</head>
<body>
<h1>{{"First example of binding"}}</h1>
</body>
</html>

The code above is rendered as follows: