-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAPI.html
More file actions
28 lines (25 loc) · 804 Bytes
/
API.html
File metadata and controls
28 lines (25 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<html>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
<body>
<div ng-app="myApp" ng-controller="myCtrl">
<p>{{'upper case : ' + x1 }}</p>
<p>{{'lower case : ' + x2 }}</p>
<p>{{'isString with string : ' + x3 }}</p>
<p>{{'isString with number : ' + x4 }}</p>
<p>{{'isNumber with number : ' + x5 }}</p>
<p>{{'isNumber with string : ' + x6 }}</p>
</div>
<script>
var app = angular.module('myApp', []);
app.controller('myCtrl', function($scope) {
$scope.x1 = angular.uppercase("John");
$scope.x2 = angular.lowercase("John");
$scope.x3 = angular.isString("test");
$scope.x4 = angular.isString(1);
$scope.x5 = angular.isNumber(1);
$scope.x6 = angular.isNumber("abc");
});
</script>
</body>
</html>