YouTip LogoYouTip

Angularjs Api

# AngularJS API * * * API stands for **A**pplication **P**rogramming **I**nterface. * * * ## AngularJS Global API The AngularJS Global API is a collection of JavaScript functions for performing common tasks, such as: * Comparing objects * Iterating over objects * Transforming objects Global API functions are accessed using the `angular` object. The following are some common API functions: | API | Description | | --- | --- | | angular.lowercase (<angular1.7οΌ‰ angular.$$lowercase()(angular1.7+οΌ‰ | Converts a string to lowercase. | | angular.uppercase() (<angular1.7οΌ‰ angular.$$uppercase()(angular1.7+οΌ‰ | Converts a string to uppercase. | | angular.isString() | Returns true if the given object is a string. | | angular.isNumber() | Returns true if the given object is a number. | **Note:** After AngularJS 1.7, the `angular.lowercase` and `angular.uppercase` methods were removed and replaced with `angular.$$lowercase` and `angular.$$uppercase`. * * * ### angular.lowercase() ## Example

{{ x1 }}

{{ x2 }}

var app = angular.module('myApp', []); app.controller('myCtrl', function($scope) { $scope.x1 = ""; $scope.x2 = angular.$$lowercase($scope.x1); }); [Try it Β»](#) ### angular.uppercase() ## Example

{{ x1 }}

{{ x2 }}

​ var app = angular.module('myApp', []); app.controller('myCtrl', function($scope) { $scope.x1 = ""; $scope.x2 = angular.$$uppercase($scope.x1); }); ​ [Try it Β»](#) ### angular.isString() ## Example

{{ x1 }}

{{ x2 }}

var app = angular.module('myApp', []); app.controller('myCtrl', function($scope) { $scope.x1 = ""; $scope.x2 = angular.isString($scope.x1); }); [Try it Β»](#) ### angular.isNumber() ## Example

{{ x1 }}

{{ x2 }}

var app = angular.module('myApp', []); app.controller('myCtrl', function($scope) { $scope.x1 = ""; $scope.x2 = angular.isNumber($scope.x1); }); [Try it Β»](#)
← Php ImagecolortransparentPhp Imagecolorsforindex β†’