Edit This Code:
See Result »
<
!DOCTYPE
html
>
<
html
>
<
script
src
="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"
>
<
/script
>
<
body
>
<
div
ng-app
=""
ng-init
="firstName='John'"
>
<
p
>
The name is
<
span
ng-bind
="firstName"
>
<
/span
>
<
/p
>
<
/div
>
<
/body
>
<
/html
>
<!DOCTYPE html> <html> <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script> <body> <div ng-app="" ng-init="firstName='John'"> <p>The name is <span ng-bind="firstName"></span></p> </div> </body> </html>
Result: