angular-underscore icon indicating copy to clipboard operation
angular-underscore copied to clipboard

Uncaught ReferenceError: _ is not defined

Open xuye opened this issue 10 years ago • 2 comments

when i import angular-underscore.js file and inject to angular module, it will have a error like this: Uncaught ReferenceError: _ is not defined in angular-underscore.js line 157. have any suggestion?

xuye avatar Nov 21 '14 14:11 xuye

It seems you not import the underscore or lodash first.

floydwch avatar Nov 22 '14 00:11 floydwch

I get the same error my code with import sequins

var MetronicApp = angular.module("MetronicApp", [ "angular-underscore", "ui.router", "ui.bootstrap", "oc.lazyLoad",
"ngSanitize", "angular-websql", "checklist-model", "ui.sortable" ]);

js file loaded successfully show fine in network.

raynoppe avatar Jan 28 '15 07:01 raynoppe