Uncaught TypeError: angular.lowercase is not a function

后端 未结 8 1511
感动是毒
感动是毒 2021-02-02 08:58

Uncaught TypeError: angular.lowercase is not a function

this error in my angularjs application, and entire application is not running. This

8条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-02 09:45

    if you are using angularjs with typescript and a linter (in my case, tslint + standard), a correct workaround would be :

    if (!angular.lowercase) (angular as any).lowercase = (text: string) => angular.isString(text) ? text.toLowerCase() : text
    

提交回复
热议问题