AngularJS

by black strings

HTML

<div ng-app="myapp">

<input type="text" ng-model="sometext" />
This is {{sometext}}

<h1 ng-show="sometext">
This is h1 value:
</h1>

<!-- using angular filters like lowercase and uppercase -->
<h2>Lowercase: {{sometext | lowercase}}</h2>

<div ng-controller = "MyCtrlA" >
   <p>Welcome {{mod.title}} to the world of Tutorialspoint!</p>
</div>

</div>

JavaScript

var str="AngularJS 1.48 Not 2.0"

 angular.module("myapp", [])
   .controller("MyCtrlA", function($scope) {
      $scope.mod = {};
      $scope.mod.title = "AngularJS";
   });