Uncaught TypeError: angular.lowercase is not a function
this error in my angularjs application, and entire application is not running. This
Ovidiu Dolha's answer got me almost there. If you look at the pre-deprecation implementation of the lowercase
function, it is a bit more. This shim implementation did the trick for me:
/**
* @brief Shim for textAngular in order to make it compatible with the latest
* version of angularjs
*/
function lowercase(string) {
return (typeof string === 'string') ? string.toLowerCase() : string;
}
// Angular deprecated the lowercase function as of v1.6.7. TextAngular hasn't
// updated to reflect this
angular.lowercase = lowercase;