AngularJS Directives (with valid HTML5) Examples




AngularJS Directives (with valid HTML5)

<!DOCTYPE>
<html>
   <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js">
   </script>
   <body>
      <div data-ng-app="" data-ng-init="firstName='SRK'">
         <p>The name is <span data-ng-bind="firstName"></span></p>
      </div>
   </body>
</html>

Output