likeastore/ngDialog — pull request #42 by kyleiwaniec (2014-07-03 20:02:45+00:00)
Title: accommodate template being returned as array

the issue: opening the dialog, the template does not load the first time. Closing, then opening the dialog a second time, the template does load.

on opening the dialog:
```
ngDialog.open({
template: '/path/to/modals/addMember.html',
controller : 'addMember'
});
```

if a log my template above line 97, it is returned as an array, like so:
```
[200, "

...

", Object]
```

since template.data is not defined, my template is set to an empty string. Causing the first attempt to fetch the template to fail. Hence I've added a check for the above format which resolves the issue.

Perhaps this is because I'm using a different version of angular (1.2.15) ? In either case, I am submitting this for your consideration.