Skip to content
This repository has been archived by the owner on Dec 16, 2019. It is now read-only.

Error on load example #3

Closed
figui opened this issue Jun 24, 2014 · 3 comments
Closed

Error on load example #3

figui opened this issue Jun 24, 2014 · 3 comments
Labels

Comments

@figui
Copy link

figui commented Jun 24, 2014

Hi,

Im installing angularjs-dropdown-multiselect via bower, im using angular 1.2.16v.

I set the following div:

$scope.multiselect = {estados = [{id: 1, label: '1'}, {id: 2, label: '2'}], selected: []};

when load my page i getting and undefined in line (src version) 289

return _.findIndex($scope.selectedModel, getFindObj(id)) !== -1;

_.findIndex is not defined, where are defined ?

Greetings

@dotansimha
Copy link
Owner

Hi,
_ is lodash.
Lodash is needed to use the directive.
You should add lodash.js to your index.html file.

@figui
Copy link
Author

figui commented Jun 24, 2014

Yes, my fault, im using require and forgot to add lodash there

Sorry!!

@figui figui closed this as completed Jun 24, 2014
@red01101976
Copy link

Sorry I have the same error and I loaded Lodash js.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants