Angular.uppercase() is not a function in Angular 1.6
Asked Answered
O

2

5

I added a js file, ui-grid.js and it uses a function uppercase() which is not recognize. All other angular function are working in my project, but when I include the js file, I have this error.

I checked if ui-grid.js is loaded after angular.js and it is.

I really don't understand why

Outshine answered 30/6, 2017 at 14:8 Comment(3)
We neither understand really why, because you didn't post any code and thing you've done so far :)Towill
@BelminBedak github.com/angular-ui/ui-grid/…Lavone
@BelminBedak I too encounter the same issue. just include angularjs v 1.7.x and ui-grid v4.6.1 and add <div id="grid1" ui-grid="main.gridOptions1" class="grid"></div> to replicate the error. I had to downgrade the angularjs version to 1.6.8 to fix. It looks like the error has been addressed in latest release, i.e. v4.6.3 of UI-grid. see this github.com/angular-ui/ui-grid/pull/6730 .Quincentenary
S
5

ui-grid is not compatible with Angular 1.6

UI-Grid is currently compatible with Angular versions ranging from 1.2.x to 1.4.x.

Subgenus answered 30/6, 2017 at 14:19 Comment(2)
We use it with 1.5.8 without any problems, though.Subgenus
I just replaced angular.uppercase() bu toUppercase() it works !Outshine
R
6

Updating angular-ui-grid to 4.6.3 solved this for me, on Angular 1.7.4.

Relaxation answered 3/10, 2018 at 17:50 Comment(0)
S
5

ui-grid is not compatible with Angular 1.6

UI-Grid is currently compatible with Angular versions ranging from 1.2.x to 1.4.x.

Subgenus answered 30/6, 2017 at 14:19 Comment(2)
We use it with 1.5.8 without any problems, though.Subgenus
I just replaced angular.uppercase() bu toUppercase() it works !Outshine

© 2022 - 2024 — McMap. All rights reserved.