Question: In following project structure I have a dependency between 2 custom MEAN.IO packages

/custom

* package1
	+ server
		- controllers
		- routes
		- models
			* model1.js
* package2
	+ server
		- controllers
		- routes
		- models
			* model2.js

model1 and model2 are both used in their own controllers, but I would like to implement an algorithm which uses both. 

My first guess would be:

```
var Model2 = mongoose.model('Model2')

```

But this returns an error:

```
MissingSchemaError: Schema hasn't been registered for model "Model2".

```

My second guess was to include model again:

```
var model = require('../../../package2/server/models/model2'),
Meeting = mongoose.model('Meeting'), ...

```

Yet still no luck, is there anybody who knows how to include models from another package in mean.io?

Answer: 
it may be late now but I load my gif from resources this way:

```
Glide.with(fragment).load(id).asGif().placeholder(R.mipmap.ic_launcher).into(img);

```

id is an (int) with the resource file, example:

```
R.drawable.YOURGIFNAME.gif

```

In my case I call glide giving a FragmentActivity, but glide can be called different way check docs <https://github.com/bumptech/glide>

I found out that the gif wont load if you dont add the:

```
.placeholder(R.mipmap.ic_launcher)

```

Hope it helps.
Use the following snippet:-

```
        GlideDrawableImageViewTarget imageViewTarget = new 
        GlideDrawableImageViewTarget(imageView);

        Glide.with(this).load(getResources ().getDrawable (R.drawable.bg_gif)).
        into(relativeLayout);

```