Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

ngSanitize error lowercase is not a function #16918

@hitendrajagtap

Description

@hitendrajagtap

AngularJS v1.7.8, ngSanitize v1.7.8

can you provide a reproduction of your problem, and place it in a new issue?

Originally posted by @petebacondarwin in #16567 (comment)

Error: [$injector:modulerr] Failed to instantiate module ngSanitize due to:
TypeError: lowercase is not a function
at arrayToMap (http://localhost:4444/Scripts/angular-sanitize.js:417:27)
at stringToMap (http://localhost:4444/Scripts/angular-sanitize.js:411:12)
at $SanitizeProvider (http://localhost:4444/Scripts/angular-sanitize.js:389:18)

function arrayToMap(items, lowercaseKeys) {
var obj = {}, i;
for (i = 0; i < items.length; i++) {
obj[lowercaseKeys ? lowercase(items[i]) : items[i]] = true;
}
return obj;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions