InterviewSolution
| 1. |
AngularJS API |
|
Answer» AngularJS API (1)angular.lowercase()var app = angular.module('myTestApp', []); app.controller('myTestCtrl', function($SCOPE) { $scope.x1 = "ADAM SUTRO"; $scope.x2 = angular.lowercase($scope.x1); }); (2)angular.uppercase()var app = angular.module('myTestApp', []); app.controller('myTestCtrl', function($scope) { $scope.x1 = "adam sutro"; $scope.x2 = angular.uppercase($scope.x1); }); (3)angular.isString()var app = angular.module('myTestApp', []); app.controller('myTestCtrl', function($scope) { $scope.x1 = "ADAM SUTRO"; $scope.x2 = angular.isString($scope.x1); }); (4)angular.isNumber()var app = angular.module('myTestApp', []); app.controller('myTestCtrl', function($scope) { $scope.x1 = "ADAM"; $scope.x2 = angular.isNumber($scope.x1); }); |
|