Im trying to use a javascript package in my angularJS application. I have added the reference to my index.html
<script src="deep-diff-0.3.1.min.js"></script>
and i'm using there example in my controller :
var lhs = {
name: 'my object',
description: 'it\'s an object!',
details: {
it: 'has',
an: 'array',
with: ['a', 'few', 'elements']
}
};
var rhs = {
name: 'updated object',
description: 'it\'s an object!',
details: {
it: 'has',
an: 'array',
with: ['a', 'few', 'more', 'elements', { than: 'before' }]
}
};
var differences = diff(lhs, rhs);
But when i try to run my application i get the following error :
ReferenceError: diff is not defined
Ive tried pointing to all of the different versions and i have also tried installing through both bower and npm