Skip to content

Doesn't work with latest version of angular sanitize #111

@shoebox639

Description

@shoebox639

I'm using angular-localize#1.2.1 with angular#1.2.28. The bower.json dependencies is as follows:

"dependencies": {
    "angular": ">=1.2 < 2",
    "angular-cookies": ">=1.2 < 2",
    "angular-sanitize": ">=1.2 < 2"
  }

This lead to the library not working recently because it installed angular-sanitize#1.6.3, which depends on angular 1.6. I get the following error from it.

  TypeError: undefined is not a constructor (evaluating 'angular.module('ngSanitize', [])
    .provider('$sanitize', $SanitizeProvider)
    .info({ angularVersion: '1.6.3' })')
  at [sic]/bower_components/angular-sanitize/angular-sanitize.js:557

I think this will break for everyone not using angular 1.6, as info() was only added to angular.module in 1.6.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions